Skip to main content
6-Contributor
September 12, 2022
Solved

Units get lost in subsequnet Formulas

  • September 12, 2022
  • 1 reply
  • 2079 views

I am using Mathcad Prime Release 8.0 and Datecode8.0.0.0

I have set of formulas with a units. If I change the unit on the result of the first formula the following formulas are loosing their unit.



Here are the errors that I faced
No error message or warning. Inconsistent results.

Best answer by LucMeekes

1. You have defined F.motor as a function of phi, but it does not depend on phi. Why did you define it so?

2. You have defined F.motor and use an immediate evaluation ( the =   )  at the end of the definition. While that works to display the value, it (too) often leads to problems due to 'side effects', as in this case.

LucMeekes_2-1663142763334.png

 

If you delete the = from the end of the definition of F.motor, the problem is gone.

If you want to see the value of F.motor, type an extra F.motor=, to get:

LucMeekes_0-1663142572446.png

LucMeekes_1-1663142699695.png

 

Success!
Luc

1 reply

23-Emerald IV
September 12, 2022

Please attach the worksheet with your example.

 

Success!

Luc

6-Contributor
September 13, 2022

Hi Luc,

Here is the MCDX file. When I change the unit from N to kN the units in the subsequent lines get lost. The value is changing as well. I would have expected I can change the unit of the result after the (= sign) independently to any other unit of force.

 

Thank you for responding.

 

 

 

 

ttokoro
21-Topaz I
21-Topaz I
September 13, 2022

If Fmoter does not depend on φ,

image.pngimage.pngimage.png

t.t.