Remove Unit - Maple Help

Online Help

All Products    Maple    MapleSim


Units[Converter]

  

RemoveUnit

  

remove a unit from the Unit Converter

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

RemoveUnit(unit, opts)

Parameters

unit

-

symbol; unit name

opts

-

(optional) equation of the form 'make'=truefalse; specifies option for the unit

Description

• 

The RemoveUnit(unit, opts) function removes the unit unit from the Unit Converter.

• 

This procedure accepts symbols and variations in spelling. For example, ms, meters/second, and metre/second represent the same dimension in the Unit Converter.

• 

You describe the options of the unit by using the optional arguments. The opts argument can contain the following equation.

  

 

  

'make'=truefalse

  

This option specifies whether the conversion tables are rebuilt after the unit has been removed from the Unit Converter.  By default, this option is set to true. If 10 or more dimensions or units are added to or removed from the Unit Converter in the same execution group, it is recommended that you execute the Units[Converter][MakeConverter]() calling sequence afterward.

Examples

withUnitsConverter:

RemoveUnitcms

AddUnitparsecyearJulian,display=parsecs per Julian year

RemoveUnitparsecyearJulian

See Also

Units

Units/Converter

Units[Converter][AddUnit]

Units[Converter][GetUnit]

Units[Converter][GetUnits]

Units[Converter][HasUnit]

Units[Converter][MakeConverter]