Units - Maple Help

Online Help

All Products    Maple    MapleSim


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

Units

  

AddSystem

  

add or modify a system of units

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

AddSystem(system, opts, units)

Parameters

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.

Description

• 

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.

Examples

withUnits:

AddSystem'US_Survey','check','mileUS_survey'

UseSystem'US_Survey'

withUnits[Standard]:

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.

3'm''ft'

3mft

(1)

combine,'units'

19684960635575680000000000miUS_survey2

(2)

mm

19684960635575680000000000miUS_survey2

(3)

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'cm''min'

a:=cmmin

(4)

converta,'system'

14001397furlongfortnight

(5)

43'newton'+15'poundal'

584156763130694400009052407727hundredweightlongfurlongfortnight2

(6)

See Also

Create Maple Initialization File

type/unit

Units

Units/Commands

Units/Index

Units/Systems

Units[GetSystem]

Units[GetSystems]

Units[HasSystem]

Units[RemoveSystem]

Units[UseSystem]

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