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
- :
- Solve output definition

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

12-03-2016
08:57 AM

12-03-2016
08:57 AM

Solve output definition

Greetings community,

Is it possible to define the output from the solve function as a new variable?

Have a nice day,

Jorge

Labels:

2 REPLIES 2

Highlighted
##

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

12-05-2016
05:51 AM

12-05-2016
05:51 AM

Re: Solve output definition

Yes, just use the : as normal to assign the value / result.

Example is for an Ode, but the same will apply for any solve block.

Mathcad 15:

Prime (2):

Because Prime handles the units a little better I was experimenting with this program to learn about prime - still not convinced...

Hope this helps

Andy

Highlighted
##

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

12-05-2016
07:50 AM

12-05-2016
07:50 AM

Re: Solve output definition

In case you had the symbolic "solve" in mind, the same as Andy already said applies - simply use the assignment operator := in front. In case of the system of equations example below you must know that the symbolics returns a row vector (while the numeric solve block "find" would return a column vector) and of course you have to be sure that only one solution exists and so the result vector will have one row only.

The screenshot is of Mathcad 15 but it works the same way in Prime, too.