Add System - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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:

Automatically loading the Units[Simple] subpackage

AddSystemUS_Survey,check,mileUS_survey

UseSystemUS_Survey

withUnitsStandard:

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.

3Unitmft

3mft

(1)

combine,units

19684960635575680000000000miUS_survey2

(2)

UnitmUnitm

19684960635575680000000000miUS_survey2

(3)

AddSystemFHF,check,furlong,hundredweightlong,fortnight,second

Error, (in Units:-AddSystem) the system already contains a unit with dimension `time`

AddSystemFHF,check,furlong,hundredweightlong,fortnight

UseSystemFHF

aUnitcmmin

acmmin

(4)

converta,system

14001397furlongfortnight

(5)

43Unitnewton+15Unitpoundal

584156763130694400009052407727furlonghundredweightlongfortnight2

(6)

See Also

Create Maple Initialization File

Units

Units/Commands

Units/Index

Units/Systems

Units[GetSystem]

Units[GetSystems]

Units[HasSystem]

Units[RemoveSystem]

Units[UseSystem]

Units[UsingSystem]