Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
How to limit the value of an ecuation?
I need to enter this:
x=a+b, but less than x=c+d
a+b>c+d => x=c+d
If I enter x=a+b<=c+d ,in case of a+b>c+d I get x=0,but I need to get x=c+d instead of 0
Which version of Mathcad are you using?
Mike
Mathcad Express Prime 3.0
Something like this?
Mike
For both - Mathcad 15 and Prime:
x := if(a + b < c + d, a + b, c + d)
Apart from a programming approach you could also use the if() function or even more compact the min() function.