Has Unit - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

Units

  

HasUnit

  

test whether a unit exists

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

HasUnit(unit, opts)

Parameters

unit

-

symbol; unit name

opts

-

(optional) equation(s) of the form option=value where option is 'display'; specify options

Description

• 

The HasUnit(unit) function returns true if the name is accepted as a unit name. Otherwise, false is returned.

  

 

  

'display'=truefalse

  

If this option is true and the unit unit is accepted as a valid unit name, the default spelling with context is returned instead of true. Otherwise, false is returned.

Examples

withUnits:

Automatically loading the Units[Simple] subpackage

HasUnitcm

true

(1)

HasUnitmileUS_survey

true

(2)

HasUnitΩ,display=true

ohmSI

(3)

HasUnitω

false

(4)

See Also

type/syntactically_valid_unit_name

Units

Units/Commands

Units/Index

Units[AddUnit]

Units[GetUnit]

Units[GetUnits]

 


Download Help Document