Skip to main content
1-Visitor
August 10, 2020
Solved

Density units change during calculation

  • August 10, 2020
  • 2 replies
  • 3075 views

I have an issue with the dimensions of density, variable roe, changing after I define it.

I defined roe := 2.62x10^-12xkg/m^3. 

When I used in a calculation I did not get the result I was expecting, especially with the wrong units.

So, I displayed the value of roe right below my definition and the units changed;

I got: roe = (2.62x10^-21)x1/kg^2

Where did this come from?

 

I ended up defining roe in terms of slugs/ft^3 and the equations were correct then on.

I entered: roe := (5.084x10^-15)xslug/ft^3

When I then displayed the value of roe in English units I got: roe = (2.62x10^-12)xkg/m^3

just like it should be.  The following equations are solved correctly.

Question: what gives?  I attached the actual Mathcad file.

Best answer by ValeryOchkov

m - mass and meter - black and blue. Blacks and Whites, pardon, Blues live matter!

 

Unit-m.png

2 replies

24-Ruby IV
August 10, 2020

m - mass and meter - black and blue. Blacks and Whites, pardon, Blues live matter!

 

Unit-m.png

daleshell1-VisitorAuthor
1-Visitor
August 10, 2020

Thanks, I can't believe I missed that.

24-Ruby IV
August 10, 2020

You welcome!

I hope the Study 9. Celestial Mechanics Or Kepler's watch  can help you.

2^5 Problems for STEM Education 

You can free download Mathcad-sheets from this site.

24-Ruby IV
August 10, 2020

What happened? Did you use the operator m:=1 kg again? Nothing wrong! You will leave our mental hospital in two months completely healthy!

durka.png

daleshell1-VisitorAuthor
1-Visitor
August 10, 2020

2 months? Promises, promises promises.