Units
UseSystem
set the default system of units
Calling Sequence
Parameters
Description
Examples
UseSystem(system, opts)
system
-
(optional) symbol; name of system of units
opts
(optional) equation of the form keepOverrides = true or false or strict = true or false; specify options for the system
The UseSystem(system, opts) function sets a default system of units to be used 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 UseUnit command is a simpler alternative to UseSystem. It selects a unit to be used for computations in the Units package. For details, see Units[UseUnit].
The opts argument can contain one or more of the following equations.
'keepOverrides'=truefalse
By default, this command overwrites the current set of units selected with the UseUnits command. To prevent this, set this option to true. For more information, see Units[UseUnit].
'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).
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.
When you edit a unit, double brackets appear around it.
with⁡Units:
Automatically loading the Units[Simple] subpackage
infolevelUnits≔1
convert⁡3.23,system,mih
convert/system: "converting to the units m/s"
1.443939200
UseSystem⁡CGS
convert/system: "converting to the units kyne"
144.3939200
unassign⁡infolevelUnits
with⁡UnitsStandard:
32⁢Unit⁡kmh
32⁢kmh
combine⁡,units
80009⁢kyne
with⁡UnitsNatural:
UseSystem⁡SI,strict
32⁢cms
825⁢ms
32⁢mih
See Also
Create Maple Initialization File
infolevel
unassign
Units/Commands
Units/Index
Units/Systems
Units[AddSystem]
Units[GetSystem]
Units[GetSystems]
Units[HasSystem]
Units[Natural]
Units[RemoveSystem]
Units[Standard]
Units[UseUnit]
Units[UsingSystem]
Download Help Document