Close
Close window
Use System - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

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 keepOverrides = true or false or strict = true or false; specify options for the system

Description

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).

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.

When you edit a unit, double brackets appear around it.

>

withUnits:

Automatically loading the Units[Simple] subpackage

>

infolevelUnits1

infolevelUnits1

(1)
>

convert3.23,system,mih

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

1.443939200

(2)
>

UseSystemCGS

>

convert3.23,system,mih

convert/system: "converting to the units kyne"

144.3939200

(3)
>

unassigninfolevelUnits

>

withUnitsStandard:

>

32Unitkmh

32kmh

(4)
>

combine,units

80009kyne

(5)
>

withUnitsNatural:

>

UseSystemSI,strict

>

32cms

825ms

(6)
>

32mih

32mih

(7)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /