Units Formatting - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Getting Started : Menus : Document Menu Bar : Format Menu : worksheet/expressions/unitsformatting

Units Formatting

• 

Maple comes with systems of Units that are commonly used in science and engineering.

• 

Units Formatting makes it possible to generate outputs in your preferred system of units, even when the inputs are given in units from a different system.

• 

Units Formatting only affects the value shown in the output of the execution group; it does not change the value or the units of the input you enter. Specifically, if you enter a variable with a unit that is not in your preferred system of units, the output displays the value of the variable in your preferred system of units but the entry for the variable in the Variables palette will show the value with units you originally entered.

• 

You can set the units format for either your worksheet or for the output of an execution group.

• 

Use the Units Formatting dialog to perform the following tasks:

– 

Set or remove the default system of units for a worksheet

– 

Set or remove the system of units for an execution group

– 

Set a unit or custom unit for an execution group

 

Set or remove the default system of units for a worksheet

Set or remove the system of units for an execution group

Set a unit or custom unit for an execution group

Set or remove the default system of units for a worksheet

• 

Set a default system of units to automatically convert the outputs of new execution groups to your preferred system of units, regardless of the input units.

• 

For example, if you set your default system of units to CGS, lengths will be converted to centimeters, masses will be converted to grams, and forces will be converted to dynes (regardless of the input units).

• 

Remove a default system of units if you want Maple to decide what the appropriate output unit should be based on the input units. For example, if you enter kgms2 as the input units, Maple will express the output in N (Newtons).

• 

Changing the default system of units only affects new execution groups. Existing execution groups keep the units they had when they were created.

To set or remove the default system of units for a worksheet:

1. 

Select Format > Units Formatting... to open the Units Formatting dialog.

2. 

Do one of the following:

• 

To set a default system of units, select Unit System, and then select a system of units from the corresponding list.

• 

To remove the default system of units, select None.

3. 

Click Apply And Set As Default.

Note: You can also set the units format by creating a User Profile and applying it to a worksheet. For details, see User Profile and Create a User Profile.

Set or remove the system of units for an execution group

• 

Set a system of units for an execution group to automatically convert its output to your preferred system of units, regardless of the input units.

• 

Remove a system of units from an execution group if you want Maple to decide what the appropriate output unit should be based on the input units. For example, if you enter kgms2 as the input units, Maple will express the output in N (Newtons).

To set or remove the default system of units for an execution group:

1. 

Select output for the execution group you want to format.

2. 

Select Format > Units Formatting... to open the Units Formatting dialog.

3. 

Do one of the following:

• 

To set a system of units, select Unit System, and then select a system of units from the corresponding list.

• 

To remove the system of units, select None.

4. 

Click OK.

Set a unit or custom unit for an execution group

• 

When you set a unit or custom unit for an execution group, the output is converted to that unit whenever the input has a unit of the same type.

• 

For example, if you set feet as the unit for an execution group, the output is converted to feet whenever the input has units of length. If you set dyne as the unit, then the output is converted to dyne whenever the input has units of force.   

• 

A custom unit can be one of the following:

– 

A nonstandard unit of measure that is recognized by Maple (for example, a fathom or a teaspoon).

– 

A unit derived from other units (for example, Ampere-second).

• 

The execution group must already have a unit associated with it before you can perform this procedure.

• 

The unit you set must have the same dimensions as the unit that is associated with the execution group.

To set a unit or custom unit for an execution group:

1. 

Select output for the execution group.

2. 

Select Format > Units Formatting... to open the Units Formatting dialog.

3. 

Do one of the following:

• 

To set a standard unit, select Unit, and then select the unit from the corresponding list.

• 

To set a custom unit, select Custom, and then enter the unit in the text box.

4. 

Click OK.

See Also

Create a User Profile

Formatting Numbers

The Variable Manager

Units

User Profile