Logical expressions help! (newbie)
- From: Nektarios - Greece <eizo5@xxxxxxxxxxxx>
- Date: Sun, 25 Jun 2006 20:11:09 +0300
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
.
- Follow-Ups:
- Re: Logical expressions help! (newbie)
- From: Maarten Wiltink
- Re: Logical expressions help! (newbie)
- From: Andreas Koch
- Re: Logical expressions help! (newbie)
- From: Tom de Neef
- Re: Logical expressions help! (newbie)
- Prev by Date: Re: To thread or not to thread
- Next by Date: Re: Logical expressions help! (newbie)
- Previous by thread: To thread or not to thread
- Next by thread: Re: Logical expressions help! (newbie)
- Index(es):
Relevant Pages
|