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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Assigning a Symbolically Solved Value to a Variable

SK_9728141
6-Contributor

Assigning a Symbolically Solved Value to a Variable

Hello,

 

Mathcad Version 8.0.0.0

 

I am trying to assign the results of a symbolically solved equation to a variable so I can use that value later in my Mathcad sheet. Does anyone know if this is possible? I have included an example sheet of the problem I am facing. 

 

As background, the reviewing parties for our calculations are used to hand calculations so I am trying to stick to the formatting in my attached sheet as it is very similar to how you would write this problem up by hand. Unfortunately, some people are stuck in their ways.

 

Thanks!

ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:SK_9728141)

This should work as you have used/written it. However, Prime auto-labels identifiers (names of variables, units, constants and functions), and...

everything that goes automatically can go automatically wrong.

Notice how you used the unit kip, and Prime turns it to kip in the symbolic result, meaning it has turned your unit into a variable. And while the symbolic processor doesn't bother about variables that aren't defined to a numeric value:

LucMeekes_0-1666977853841.png

, the numeric processor does mind:

LucMeekes_1-1666977870970.png

It often helps to set the calculation option "Units/Constants in symbolics' ON...Alas, not this time.

There's another way to determine the value, using the root function, look it up in help:

LucMeekes_2-1666978116682.png

LucMeekes_3-1666978134771.png

LucMeekes_4-1666978150634.png

Success!
Luc

 

 

View solution in original post

3 REPLIES 3
LucMeekes
23-Emerald III
(To:SK_9728141)

This should work as you have used/written it. However, Prime auto-labels identifiers (names of variables, units, constants and functions), and...

everything that goes automatically can go automatically wrong.

Notice how you used the unit kip, and Prime turns it to kip in the symbolic result, meaning it has turned your unit into a variable. And while the symbolic processor doesn't bother about variables that aren't defined to a numeric value:

LucMeekes_0-1666977853841.png

, the numeric processor does mind:

LucMeekes_1-1666977870970.png

It often helps to set the calculation option "Units/Constants in symbolics' ON...Alas, not this time.

There's another way to determine the value, using the root function, look it up in help:

LucMeekes_2-1666978116682.png

LucMeekes_3-1666978134771.png

LucMeekes_4-1666978150634.png

Success!
Luc

 

 

SK_9728141
6-Contributor
(To:LucMeekes)

Thanks, Luc! That is a great explanation and seems like it is working!

Interesting - Prime seems get better and better with each version ...

Here is the result after recalculation in Prime 6, even without turning on "Units/Constants in Symbolics" in the Calculation Options.

Werner_E_0-1666994264660.png

When I turn on "Units/Constants in Symbolics" in the Calculation Options, the "kip" in the symbolic result additionally gets labelled correctly as unit.

Werner_E_1-1666994383453.png

 

Announcements

Top Tags