You can compute with units and dimensions. Maple will track units throughout a calculation, resolve compound units to a simpler form, and help you ensure your calculations are dimensionally consistent.
Here, note how units of force over area are correctly resolved to the SI unit of stress.
| (1) |
The ThermophysicalData and ScientificConstants packages associate units with fluid properties and physical constants.
>
|
|
>
|
|
You can define units using one of several methods.
Ctrl+Shift+U followed by the unit
|
|
Unit function
|
>
|
|
|
Units Palette
|
|
|
|
Here's how you define a variable with a unit using Ctrl+Shift+U.
|
What you should see
|
Try it here
|
Type x:=3.5
|
|
|
Press Ctrl+Shift+U
|
|
Type m
|
|
Press the right arrow key
|
|
Type a colon and then press Enter
|
|
|
|
Changing the Units of a Result
|
|
|
You can also change the units of a result using the options under Convert Output Units in the Context Panel.
Simply click on a result with a unit, and navigate to the Context Panel - you can select one of several suggested unit conversions or specify your own. Number formating can also be modified.
Variables can also have associated tolerances, which are carried through calculations.
For example, consider a water manometer reading a height of 0.08 m with a measurement error of ±0.002 m. The possible range of pressures is thus
>
|
|
>
|
|
| (4) |
>
|
|
| (5) |
|