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

Online Help

All Products    Maple    MapleSim


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

The type Function in the Simple Units Environment

 

Description

Examples

Description

• 

In the Simple 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. This prevents problems that would otherwise arise because the global type command expects to find the global versions, not the versions from the Simple Units environment.

• 

Every command in the Simple Units environment that needs to determine whether an expression is valid or not, does so using the Units[TestDimensions] command.

• 

For more information about this function, see the global type help page.

Examples

typea=3,name=integer

true

(1)

The following result is unexpectedly false due to the Simple Units version of an equation being passed to the global version of type.

withUnitsSimple:

:-typea=3,name=integer

false

(2)

By using the Simple Units version of type, we make sure this equation is converted to its global version, and we get the expected answer.

typea=3,name=integer

true

(3)

See Also

type

Units

Units/Simple

Units/Simple/arithmetic operators

Units/Simple/equalities

Units/Simple/inequalities