Units
UseContexts
set default context(s)
Calling Sequence
Parameters
Description
Examples
UseContexts(ctx1, ctx2, ...)
ctx1, ctx2, ...
-
symbol(s); unit context(s)
The UseContexts(ctx1, ctx2, ...) function defines the default context(s) to use for the current session without redefining the defaults for each unit. It also returns the context(s) assigned by its most recent execution if any exists.
To redefine the default context(s) for all future Maple sessions, add the UseContexts command to your Maple initialization file. For more information, see Create Maple Initialization File.
If a unit name is specified without a context, the contexts in the last execution of the command UseContexts are each checked to see if any are valid. If one is appropriate, it is used as the default context.
with⁡Units:
Automatically loading the Units[Simple] subpackage
convert⁡1.0,units,kg,oz
35.27396195
convert⁡1.0,units,kg,oztroy
32.15074657
convert⁡1.0,units,km,mi
0.6213711922
convert⁡1.0,units,km,miUS_survey
0.6213699495
UseContexts⁡US_survey,troy
convert⁡1.0,units,kg,ozavoirdupois
convert⁡1.0,units,km,mistandard
UseContexts⁡apothecary
US_survey,troy
See Also
Create Maple Initialization File
Units/Commands
Units/Index
Download Help Document