Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

** Community Tip** - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements.
X

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

May 23, 2018
06:49 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

May 23, 2018
06:49 AM

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

May 23, 2018
07:33 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

May 23, 2018
07:33 AM

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 23, 2018
08:15 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

May 23, 2018
08:15 AM

May be so

a(x):=…

**b(x):=…**

**c(x):=…**

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

May 23, 2018
08:40 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator

May 23, 2018
08:40 AM

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