The convert Function in the Natural Units Environment
|
Description
|
|
•
|
In the Natural Units environment, the global convert function is replaced by a convert function that converts any unevaluated arithmetic operators, equalities, or inequalities to their global equivalents. The first argument is tested to check whether it is a valid unit name.
|
•
|
For more information about this function, see the global convert help page.
|
>
|
:-convert(3*Unit('m/s'), 'units', 'cm/s'); # this should fail
|
>
|
convert(3*Unit('m/s'), 'units', 'cm/s');
|
| (1) |
>
|
:-convert('m', 'units', 'ft'); # the 'm' is not interpreted as a meter
|
>
|
convert('m', 'units', 'ft');
|
| (2) |
|
|
Download Help Document
Was this information helpful?