Skip to main content
1-Visitor
May 23, 2018
Question

Largest number

  • May 23, 2018
  • 3 replies
  • 3099 views

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

23-Emerald IV
May 23, 2018

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

24-Ruby IV
May 23, 2018

May be so

a(x):=…

b(x):=…

c(x):=…

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

min-f.png

23-Emerald IV
May 23, 2018

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