Skip to main content
1-Visitor
October 13, 2017
Solved

Is it possible to override "The forms of these values must match" error?

  • October 13, 2017
  • 1 reply
  • 1971 views

Hi, I know that MC15 doesn't like different units in one array and I know how to override this. But what to do in this case?

I`m reading excel file to MathCAD and I want to get units from it. The unit in one "unit cell" can be "mm" or "deg".I don`t want to add one more column for "mm" or for "deg".I want to use one cell for different purposes. Is this possible? 

Units matching problem.png

Best answer by Werner_E

As far as I am aware this is not possible, as a function value can't be of different dimensions depending on a condition.

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
October 13, 2017

As far as I am aware this is not possible, as a function value can't be of different dimensions depending on a condition.

 

23-Emerald IV
October 18, 2017

Mathcad 11 (or any other version since about 3 and before 12):

LM_20171018_Units.png

And Prime 4 (and I guess 1 to 3.1 as well):

LM_20171018_UnitsPrime.png

So, apart from the stupidous gm instead of g, (who would ever get it into his mind to define the earth gravitational acceleration as a UNIT named g,  where at best it's a physical constant !?!) it works in almost all versions of Mathcad and Prime.... but unfortunately not the one you're using.

Maybe a reason to start using Prime, although there may be a ton of reasons not to...

 

Success!
Luc

 

23-Emerald IV
October 18, 2017

Sorry, a correction is required here, it's even more weird:

LM_20171018_UnitsPrime.png

So I have to put the unit gm instead of g to get plain grams.

If I put the unit g, Prime confuses it with the Earth gravitational acceleration (green) constant g...?