set the default system of units - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Units : Manipulating Systems : Units/UseSystem

Units[UseSystem] - set the default system of units

Calling Sequence

UseSystem(system, opts)

Parameters

system

-

(optional) symbol; name of system of units

opts

-

(optional) equation of the form 'strict'= true or false; specify options for the system

Description

• 

The UseSystem(system, opts) function sets a default system of units to be used in the Standard or Natural environments or in conjunction with the convert/system function for the current session. If a system name is specified, and such a system exists, that system will be set as the default system.

• 

To set a default system of units for all future Maple sessions, add the UseSystem command to your Maple initialization file. For more information, see Create Maple Initialization File.

• 

The opts argument can contain the following equation.

  

 

  

'strict'=truefalse

  

If this option is set to true, then only units that are part of the given system (including those with SI or IEC prefixes) are accepted in the Natural environment.

  

This prevents uncommon units (for example, ph, that is, the phot) from precluding the acceptance of system symbols (for example, ph, that is, the picohour in SI).

Examples

If infolevel is set to a greater integer (possible settings are 1 through 5), more detailed information about the computation method is displayed.

Notes: 

– 

To enter a unit in 2-D Math input, select the unit from the appropriate Units palette. If the unit you want is not there, select unit and then enter the unit.

– 

In Maple 2015 and later versions, the double brackets around a unit are not displayed unless you are editing the unit.

withUnits:

infolevel[Units]:=1

infolevelUnits:=1

(1)

convert3.23,'system','mi''h'

convert/system:   "converting to the units m/s"

1.443939200

(2)

UseSystem'CGS'

convert3.23,'system','mi''h'

convert/system:   "converting to the units kyne"

144.3939200

(3)

unassign'infolevel[Units]'

withUnits[Standard]:

32'km''h'

32kmh

(4)

combine,'units'

80009kyne

(5)

withUnits[Natural]:

UseSystem'SI','strict'

32'cm''s'

825ms

(6)

32'mi''h'

32mih

(7)

See Also

Create Maple Initialization File, infolevel, unassign, Units, Units/Commands, Units/Index, Units/Systems, Units[AddSystem], Units[GetSystem], Units[GetSystems], Units[HasSystem], Units[Natural], Units[RemoveSystem], Units[Standard], Units[UsingSystem]


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