Skip to main content
1-Visitor
August 22, 2017
Solved

Incongruence in matrix units

  • August 22, 2017
  • 2 replies
  • 1967 views

Good morning

 

Can anybody explain me this (see screenshot)?
After the "=" in the matrix I see what are the right units (which are no units for the last 2 elements).

But when I try to use them later, it looks as if the last 2 elements are in m.

 

I attached also the mathcad file. I use Mathcad prime 3.1

 

Thanks

Best answer by Werner_E

Thats where zero and Zero come to play:

Bild1.png

Its explained in more detail in the Prime Migration Guide (see attached)

 

2 replies

23-Emerald IV
August 22, 2017

That's because Mathcad (and apparently Prime too), will append units to a value of 0 whenever it is convenient (to the discretion of internal algorithms).

You can check equality between 2 m and 0 m, as well as between 2 m and 0, and they both result in False (not True). but an equality check between 2m and 3 throws an error.

UnitComparison.png

I guess something similar is going on here.

 

Success!
Luc

Werner_E25-Diamond IAnswer
25-Diamond I
August 22, 2017

Thats where zero and Zero come to play:

Bild1.png

Its explained in more detail in the Prime Migration Guide (see attached)