•Handled by
NumRu::Units (by E Toyoda)
•mlt,div,etc.: handled
as should be
•add,subF the units of the first term is
inherited
–e.g., addition of [m]
and [km] is done after multiplying the second term by 1000. Warning is made if the units are incompatible (in
that case, no conversion is made).
•Introduced a scalar
numeric class with units UNumeric
–GPhys, VArray, and
UNumeric recognize one another (stronger to weaker in this
order)
–Example: to multiply
the Coriolis parameter with a GPhys object u representing
winds [m/s]:
– f =
UNumeric[1e-4,hs-1h]
– coriolis_frc = f * u # then
the units will be in m.s-2