convert/unit_free - convert to unit-free form
|
Calling Sequence
|
|
convert(u, unit_free, unit)
|
|
Parameters
|
|
u
|
-
|
expression
|
unit
|
-
|
(optional) name
|
|
|
|
|
Description
|
|
•
|
The convert(u, unit_free) function returns the unit-free component of u. If u is of type unit, then is returned.
|
•
|
The convert(u, unit_free, unit) function returns the unit-free component of u and assigns the unit component of u to unit. If u is of type unit, then is returned. If u is unit-free, then is assigned to unit.
|
•
|
The term unit-free describes a scalar quantity with no (multiplicative) unit attached to it. Conversion to unit-free does not apply directly to any non-scalar Maple object or data structure, which may still have units embedded within it.
|
|
|
Examples
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
| (6) |
The conversion to unit_free state does not recurse into, or map over, non-scalar objects. Examples illustrating such mapping or effective unit-stripping recursion are shown below.
>
|
|
| (7) |
>
|
|
| (8) |
>
|
|
| (9) |
>
|
|
| (10) |
>
|
|
| (11) |
If a non-scalar object contains a mix of units then it may be desirable to combine the units or convert to a single system, so as to get correct scaling.
>
|
|
| (12) |
>
|
|
| (13) |
>
|
|
| (14) |
>
|
|
| (15) |
|
|
Download Help Document
Was this information helpful?