cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Solve output definition

Highlighted
Newbie

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

2 REPLIES 2

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:

Capture.PNG

Prime (2):

Capture.PNG

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

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.

Announcements