Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
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
Solved! Go to Solution.
The "match(,,) will locate the duplicates as well.
jmG
Do easier without programming:
Viktor
Thank you for the swift help.
I was so occupied with getting the programming to work that i didnt even consider other options.
Regards
Anton