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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Largest number

capsfear
2-Explorer

Largest number

In Mathcad If I have 3 functions a, b and c and I whant d to be the biggest out of the three how do I do that? Like:

 

d=max[a:b:c]=biggest value

 

Thanks for help

3 REPLIES 3
LucMeekes
23-Emerald III
(To:capsfear)

That will ONLY work if a, b and c are values (or sets of values such as array or matrices): you'll get the largest of any of the values and/or array- and/or matrix-elements.

If a, b and c are really functions, you'll need a litte more.

 

Success!
Luc

May be so

a(x):=…

b(x):=…

c(x):=…

d(x):=max(a(x), b(x), d(x))

min-f.png

LucMeekes
23-Emerald III
(To:capsfear)

And what Valery shows (above, Thanks Valery!) is one possibility of 'a little more'.

Essentially what goes on there is that a(x), b(x) etc are numbers, each corresponding to a call to the d(x) function.

 

Luc

Announcements

Top Tags