Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whichever is Greater

Status
Not open for further replies.

OpDawg

Civil/Environmental
Dec 14, 2009
2
Hello! I'm trying to set up a several equations, with variables that may or may not be defined (if not defined = 0), then hopefully have Mathcad chose the greatest result.

Example:
Given: D=5, F=10, T=*undefined*(assume "0")
Find U:

U1 = 1.4(D+F)
U2 = 1.2(D+F+T)

U = U1 or U2, whichever is greater

Any idea, how I go about this? Just a point in the right direction is all I need. I just got back into Mathcad.
 
Replies continue below

Recommended for you

There's a function called "max" as well as its corrollary function "min"

TTFN

FAQ731-376
 
I think a combination of both would work, I have actually 4 equations to compare (not 2), so the 'max(x)' function should suffice... Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor