1-Visitor
September 22, 2010
Solved
And function in programming
- September 22, 2010
- 4 replies
- 3840 views
I have been trying to make that can determin wich variable that has the greatest value.
I found a simple way of doing it with the if command if I only have 2 or 3 variables. but if i get to 4 or more it gets a bit more complicated.
I have thought of using the "While" command but when ever i use it Mathcad freezes. So i guss it isn n option for me.
so is there a comman that could achive the following
e= a if (a greater b) and (a greater c) and (a greater d)
or b if (b greater a) and (b greater c) and (b greater d)
or c if (c greater a) and (c greater b) and (c greater d)
or d if (d greater a) and (d greater c) and (d greater d)
or somthing to the same effect.
regards
Anton

