Convert between numerical units
This function converts between numerical units.
It works similar to the
You provide vector
x and a
from and a
to unit name
and the function converts.
This is an internal class. It administers the unitsets
used by the
uconv method. One instance, usually
the only one, is created at startup.
Internal function to create an UnitSetManager object.
1 2 3
character, unit to convert from.
character, unit to convert to
optional, character, unit set to use.
Additionally, you may provide a unitset name. Here, the
iconv ceases. Think of unitset as a
dimension of units, or a context for units. Predefined
unitsets are "Length", "Mass", "Energy", and "Temperature".
It is recommened to provide the unitset name.
A list of available unitsets and the units defined by them
can be obtained with
This is a proof of concept for the
1 2 3