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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Less than...

ptc-4868655
1-Newbie

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
MikeArmstrong
5-Regular Member
(To:ptc-4868655)

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)

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

conditions.png

Top Tags