cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Translate the entire conversation x

Less than...

ptc-4868655
1-Visitor

Less than...

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

5 REPLIES 5

Which version of Mathcad are you using?

Mike

Mathcad Express Prime 3.0

Something like this?

Clipboard01.jpg

Mike

For both - Mathcad 15 and Prime:

x := if(a + b < c + d, a + b, c + d)

Werner_E
25-Diamond I
(To:ptc-4868655)

Apart from a programming approach you could also use the if() function or even more compact the min() function.

conditions.png

Announcements

Top Tags