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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

6-Contributor

## Assigning a Symbolically Solved Value to a Variable

Hello,

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!

1 ACCEPTED SOLUTION

Accepted Solutions
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:

, the numeric processor does mind:

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:

Success!
Luc

3 REPLIES 3
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:

, the numeric processor does mind:

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:

Success!
Luc

6-Contributor
(To:LucMeekes)

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

24-Ruby V
(To:LucMeekes)

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.

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

Announcements
Top Tags