Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
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?
Solved! Go to Solution.
As far as I am aware this is not possible, as a function value can't be of different dimensions depending on a condition.
As far as I am aware this is not possible, as a function value can't be of different dimensions depending on a condition.
Mathcad 11 (or any other version since about 3 and before 12):
And Prime 4 (and I guess 1 to 3.1 as well):
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
Sorry, a correction is required here, it's even more weird:
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...?