test whether a dimension exists - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Units : Manipulating Dimensions : Units/HasDimension

Units[HasDimension] - test whether a dimension exists

Calling Sequence

HasDimension(dim)

Parameters

dim

-

symbol; dimension name

Description

• 

The HasDimension(dim) function returns true if there is a dimension with the name dim. Otherwise, false is returned.

Examples

withUnits:

HasDimension'length'

true

(1)

HasDimension'speed'

true

(2)

HasDimension'acceleration'

true

(3)

HasDimension'surge'

false

(4)

AddDimension'surge'='length''time'3

HasDimension'surge'

true

(5)

See Also

Units, Units/Commands, Units/Index, Units[AddDimension], Units[GetDimension], Units[GetDimensions], Units[RemoveDimension]


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