The convert Function in the Natural Units Environment - Maple Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Science and Engineering : Units : Environments : Natural : Units/Natural/convert

The convert Function in the Natural Units Environment



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.


Note: In Maple 2015 and later versions, units are not surrounded by double brackets.


:-convert(3*Unit('m/s'), 'units', 'cm/s');  # this should fail

Error, (in `convert/units`) `Units:-Natural:-`*`(cm,Units:-Natural:-`/`(s))` is not a recognized unit

convert(3*Unit('m/s'), 'units', 'cm/s');



:-convert('m', 'units', 'ft');  # the 'm' is not interpreted as a meter

Error, (in `convert/units`) unable to convert `1` to `ft`

convert('m', 'units', 'ft');



See Also

convert, Units, Units/Natural, Units/Natural/arithmetic operators, Units/Natural/equalities, Units/Natural/inequalities

Download Help Document

Was this information helpful?

Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam