Question: How to make units come out as I need?

I am adding 'specificheat' as a property to the Element database in Maple.

In my .mapleinit I have added the property so it is permanent

I have a Package that loads the values in from a table using

  ScientificConstants:-ModifyElement(parse(elemt),specificheat=[value=data[i,4]*1000,units='J/kg/K']);

which runs in a loop for all elements I have values for. This all works.

My issue: GetUnit() returns a unit of m^2/(s^2*K). While this is not wrong, I want it to stay J/(kg*K), which is much more suitable for my work (and, besides, is the SI unit for specific heat). I can use convert to fix it on a case-by-case basis, but that is decidedly clumsy.

Is there a way to do that?

This is in Maple 2015. I have access to Maple 2023 as well, but not where I am right now. I really need this to work on all of them.

TIA,

M.D.

Please Wait...