Get Help

Turn on suggestions

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

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Possible to find the maximum of a function of func...

Options

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

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

Showing results for

Highlighted

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

05-31-2013
12:32 PM

05-31-2013
12:32 PM

In the attached MathCAD 14 worksheet, M(x) is a function of 5 other functions. I'd like MathCAD to tell me what the maximum value of M(x) is. Is there anyway to do this?

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

Highlighted

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

05-31-2013
01:20 PM

05-31-2013
01:20 PM

Find attached one possible way

5 REPLIES 5

Highlighted

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

05-31-2013
01:20 PM

05-31-2013
01:20 PM

Find attached one possible way

Highlighted
##

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

05-31-2013
01:29 PM

05-31-2013
01:29 PM

Re: Possible to find the maximum of a function of functions?

Thank you very much Werner! I wasn't able to get the maximize function to work. I've never seen this iterative method or the lookup command before.

Highlighted
##

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

05-31-2013
01:51 PM

05-31-2013
01:51 PM

Re: Possible to find the maximum of a function of functions?

Ooops, using maximize() would be more natural and much easier. See attached. If it didn't work for you, maybe you forgot to provide a guess value.

The function max() I used works for vectors, matrices, scalars and strings, but not for functions. So it was necessary to create vectors for x and function values M(x).

Maximize() sure is the better way to do it.

Highlighted
##

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

05-31-2013
04:39 PM

05-31-2013
04:39 PM

Re: Possible to find the maximum of a function of functions?

Thank you again Werner, now I have two ways to find the maximum!

Highlighted
##

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

05-31-2013
05:32 PM

05-31-2013
05:32 PM

Re: Possible to find the maximum of a function of functions?

You are welcome.

Maximize() will provide better accuracy combined with less effort.

Just investigate the difference between the values of Mmax calculated by both methods. You will have to set up Nmax very high to reduce that difference to an accaptable (depends on the application, of course) value.