Units
AddSystem
add or modify a system of units
Calling Sequence
Parameters
Description
Examples
AddSystem(system, opts, units)
system
-
symbol; system name
opts
(optional) equation of the form 'check'= true or false; specify options for the system
units
symbol; any number of existing units to be associated with the given system.
The AddSystem(unit_name, opts, units) function adds or redefines a system of units in the current session.
This allows you to specify it for a call to the UseSystem command.
To add or redefine a system of units in all future Maple sessions, add the AddSystem command to your Maple initialization file. For more information, see Create Maple Initialization File.
A system cannot have two units with the same dimension.
The opts argument can contain the following equation.
'check'= truefalse
If this option is set to true, an exception will be generated if two units with the same dimension are associated with the system. Otherwise, the last unit with the given dimension will be associated with the system. The default value of 'check' is false.
Units to be associated with the given system are listed.
with⁡Units:
Automatically loading the Units[Simple] subpackage
AddSystem⁡US_Survey,check,mileUS_survey
UseSystem⁡US_Survey
with⁡UnitsStandard:
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.
3⁢Unit⁡m⁢ft
3⁢m⁢ft
combine⁡,units
19684960635575680000000000⁢miUS_survey2
⁢Unit⁡mUnit⁡m
AddSystem⁡FHF,check,furlong,hundredweightlong,fortnight,second
Error, (in Units:-AddSystem) the system already contains a unit with dimension `time`
AddSystem⁡FHF,check,furlong,hundredweightlong,fortnight
UseSystem⁡FHF
a≔Unit⁡cmmin
a≔cmmin
convert⁡a,system
14001397⁢furlongfortnight
43⁢Unit⁡newton+15⁢Unit⁡poundal
584156763130694400009052407727⁢furlong⁢hundredweightlongfortnight2
See Also
Create Maple Initialization File
Units/Commands
Units/Index
Units/Systems
Units[GetSystem]
Units[GetSystems]
Units[HasSystem]
Units[RemoveSystem]
Units[UseSystem]
Units[UsingSystem]
Download Help Document