The type Function in the Natural Units Environment - Maple Programming Help

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

The type Function in the Natural Units Environment

Description

 • In the Natural Units environment, the global type function is replaced by a type 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.
 > type(a1 = 3, 'name=integer');
 ${\mathrm{true}}$ (1)
 > with(Units[Natural]):
 > :-type(a1 = 3, 'name=integer');  # this unexpectedly returns false
 ${\mathrm{false}}$ (2)
 > type(a1 = 3, 'name=integer');
 ${\mathrm{true}}$ (3)
 > :-type(m, name);
 ${\mathrm{true}}$ (4)
 > type(m, name);  # this unexpectedly returns 'false', because m is the meter
 ${\mathrm{false}}$ (5)