Tells the units
package how to convert between units that
have a linear relationship, i.e. can be related on the form \(y = \alpha
x\) (constant) or \(y = \alpha + x\) (offset).
install_conversion_constant(from, to, const)install_conversion_offset(from, to, const)
String for the symbol of the unit being converted from.
String for the symbol of the unit being converted to. One of
from
and to
must be an existing unit name.
The constant \(\alpha\) in the conversion.
This function handles the very common case where units are related
through a linear function, that is, you can convert from one to the other
as \(y = \alpha x\). Using this function, you specify that you
can go from values of type from
to values of type to
by
multiplying by a constant, or adding a constant.