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
- :
- Re: can anyone help me with this?

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

06-08-2016
01:07 AM

06-08-2016
01:07 AM

the problem I have is about global assignment. Is there any other ways for me to use to calculate the max value without using the maximise function? I have used global assignment thru out the mathcad as it is needed for my summary in the first page.

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

06-08-2016
10:44 AM

06-08-2016
10:44 AM

OK - looks like there indeed is a way to achieve what you want (if what you want is what I think it is).

As your function f is simple enough and well behaved in the interval of interest, you can use "root" to find the zero of the derivative of f and assign the output globally directly to beta.crit.

Nevertheless I would still vote against using those global assignments the way you do 😉

You may soon reach a point where no workaround is available.

WE

4 REPLIES 4

Highlighted
##

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

06-08-2016
04:53 AM

06-08-2016
04:53 AM

Re: can anyone help me with this?

> I have used global assignment thru out the mathcad as it is needed for my summary in the first page.

I don't see any global assignments in your two pictures so it is not clear which variable is globally assigned a value and which was calculated. Furthermore its not a good idea to give us just pictures to look at rather than the worksheet itself (unless its P3.1 of course). If possible at all strip down your sheet to the barebones or create a dummy sample sheet showing the problem and send it here.

Global assignments should be used sparely and with care. Generally its not a good idea to use global assignments the way your text implies you had done.

Maybe its a better idea not to look for a replacement for maximize but rather for a replacement of your summary at the first page.

WE

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

06-08-2016
05:02 AM

Highlighted
##

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

06-08-2016
10:20 AM

06-08-2016
10:20 AM

Re: can anyone help me with this?

And the concrete problem is .....?

Obviously the maximize block works OK.

Is it that you don't want to copy the output 65.29 degreee manually to the globally assigned variable beta.crit which probably is used to calculate other variables you need to see in your summary at the top?? If yes, I would see no way to do so, sorry.

Highlighted

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

06-08-2016
10:44 AM

06-08-2016
10:44 AM

OK - looks like there indeed is a way to achieve what you want (if what you want is what I think it is).

As your function f is simple enough and well behaved in the interval of interest, you can use "root" to find the zero of the derivative of f and assign the output globally directly to beta.crit.

Nevertheless I would still vote against using those global assignments the way you do 😉

You may soon reach a point where no workaround is available.

WE