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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Translate the entire conversation x

Solver not Simplifying Units

DB_13699250
3-Newcomer

Solver not Simplifying Units

Hello,

I am having issues with the solver not simplifying the units of my equation (file attached)- does anyone know what may be causing the issue?

I'm using Mathcad Prime 9.0.0.0

DB_13699250_1-1750790644141.png

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:DB_13699250)

The problem is that Prime's auto-labelling is doing wrong by labelling some of the used units as unit and some as variable (you can tell so by the typeface and color). The symbolics does not know anything about units and treats them as undefined variables. And a unit "in" and a variable "in" are seen as different and can't be cancelled.

 

You should turn on the option "Units/Constants in Symbolics" in the Calculation options and then recalculate the worksheet.

Werner_E_0-1750792590773.png

In your case this solves the problem

Werner_E_1-1750792677427.png

Nonetheless the symbolics still does not know anything about units.  In your case these 'variables' cancel and so you get the result(s) you expect.

Normally you would have to follow with a numerical evaluation to simplify the units.

Here in the example I replaced psi by 144 psf and you can see that the symbolics is not capable to simplify:

Werner_E_2-1750792945908.png

 

But usually when you are just looking for numerical results you are better off using Primes numerical ways to solve equations. These are either solve blocks with "find" or the "root" function.

 

Is there any reason why you tried to get rid of the units you had defined initially?

Your equation could be made unit consistent if e is given the unit psi*in.

Here is a way to use the "root" function

Werner_E_3-1750793137252.png

Werner_E_4-1750793220950.png

 

View solution in original post

4 REPLIES 4
Werner_E
25-Diamond I
(To:DB_13699250)

The problem is that Prime's auto-labelling is doing wrong by labelling some of the used units as unit and some as variable (you can tell so by the typeface and color). The symbolics does not know anything about units and treats them as undefined variables. And a unit "in" and a variable "in" are seen as different and can't be cancelled.

 

You should turn on the option "Units/Constants in Symbolics" in the Calculation options and then recalculate the worksheet.

Werner_E_0-1750792590773.png

In your case this solves the problem

Werner_E_1-1750792677427.png

Nonetheless the symbolics still does not know anything about units.  In your case these 'variables' cancel and so you get the result(s) you expect.

Normally you would have to follow with a numerical evaluation to simplify the units.

Here in the example I replaced psi by 144 psf and you can see that the symbolics is not capable to simplify:

Werner_E_2-1750792945908.png

 

But usually when you are just looking for numerical results you are better off using Primes numerical ways to solve equations. These are either solve blocks with "find" or the "root" function.

 

Is there any reason why you tried to get rid of the units you had defined initially?

Your equation could be made unit consistent if e is given the unit psi*in.

Here is a way to use the "root" function

Werner_E_3-1750793137252.png

Werner_E_4-1750793220950.png

 

Thank you, this worked!

LucMeekes
23-Emerald IV
(To:DB_13699250)

In general, when you want to solve a system symbolically, you should use only symbols and numbers without units.

you can write your system as:

LucMeekes_0-1750927675074.png

To see that it has two solutions.

But what is this number 46500, and what are 16000 and 1500?

I should guess that 46500 is another pressure, lets call it ss, then it solves as:

LucMeekes_1-1750928085681.png

But for evaluation we need e.g. to give e a unit of in:

LucMeekes_2-1750928156908.png

But do you expect the value of T to be unitless?

You could continue and provide proper symbols for the values 16000 and 1500, and define them with their respective units when calculating the result.

 

Success!
Luc

 

 

Thank you, got it now 🙂

Announcements


Top Tags