Logical expressions help! (newbie)



Suppose you have a mathematical expression valid if 0,5 < x < 2
where x is a real number.
Suppose again that you have a second mathematical expression valid if 0<x<1,5.

Now let the user enter x in a Edit box.
If user enters x=1 the program should inform him that both mathematical expressions works for him and let him choose which mathematical expression works for him. Another option is that the program will present both solutions informing the user that both will work for him.

The mathematical expressions calculate "Nusselt number" , a number to calculate heat transfer phenomena. The mathematical expressions do NOT find the same Nusselt number. A 10% deviation is present.
Example
Nusselt1=2*x+3
Nusselt2=5*x-1


THE QUESTION :
How can i make the program to find out that both mathematical expressions are valid ( "if then else" won't work in case of x=1 ) and inform the user about that ? After that, the program should present the two results in the same form.

Any tip ?
Please people help me. I REALLY need your help.


Nektarios
.



Relevant Pages

  • Re: Logical expressions help! (newbie)
    ... Suppose again that you have a second mathematical expression valid if ... The mathematical expressions calculate "Nusselt number", ... The mathematical expressions do NOT ... function ValidRange1: boolean; ...
    (comp.lang.pascal.delphi.misc)
  • Re: Logical expressions help! (newbie)
    ... Suppose again that you have a second mathematical expression valid if 0<x<1,5. ... The mathematical expressions calculate "Nusselt number", a number to calculate heat transfer phenomena. ... function ValidRange1: boolean; ... Thank you Tom for your help. ...
    (comp.lang.pascal.delphi.misc)