cancel
Showing results for
Did you mean:
cancel
Showing results 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

1-Newbie

## 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
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

24-Ruby IV
(To:capsfear)

May be so

a(x):=…

b(x):=…

c(x):=…

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

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