Constant - Maple Help

ScientificConstants

 Constant
 construct a physical constant object

 Calling Sequence Constant( descriptor, opts, 'units' )

Parameters

 descriptor - name; full name or symbol of a physical constant in the ScientificConstants package. For a list of physical constants, see Initial Physical Constants opts - (optional) equation(s) of the form option=value, where option is one of 'system'; specify option(s) for object 'units' - (optional); specify that the object returned is a physical constant object multiplied by a unit object

Description

 • The Constant( descriptor ) command constructs a physical constant object. The object can be used, for example, to access the value, see GetValue, or the uncertainty in its value, see GetError.
 • If no options are specified, an object is returned with no system of units. When such an object is evaluated or queried, it returns the physical constant value in the current system of units. For more information, see Units[UsingSystem].
 • If the 'units' option is specified and the 'system' equation is not specified, the units are selected from the current system of units.
 • To access the value of an object with units, use the evalf function.
 • The opts argument can contain one or more of the following equations that set object options.
 'system' = symbol
 This option controls the system of units associated with the object. If the system specified is a system of units accepted by the Units package, the returned constant object has the system of units specified in index notation. For a list of accepted systems of units, see Units/Systems. When such an object is evaluated or queried, it returns the physical constant value in the indicated system of units.

Examples

 > $\mathrm{with}\left(\mathrm{ScientificConstants}\right)$
 $\left[{\mathrm{AddConstant}}{,}{\mathrm{AddElement}}{,}{\mathrm{AddProperty}}{,}{\mathrm{Constant}}{,}{\mathrm{Element}}{,}{\mathrm{GetConstant}}{,}{\mathrm{GetConstants}}{,}{\mathrm{GetElement}}{,}{\mathrm{GetElements}}{,}{\mathrm{GetError}}{,}{\mathrm{GetIsotopes}}{,}{\mathrm{GetProperties}}{,}{\mathrm{GetProperty}}{,}{\mathrm{GetUnit}}{,}{\mathrm{GetValue}}{,}{\mathrm{HasConstant}}{,}{\mathrm{HasElement}}{,}{\mathrm{HasProperty}}{,}{\mathrm{ModifyConstant}}{,}{\mathrm{ModifyElement}}\right]$ (1)
 > $\mathrm{Constant}\left(g\right)$
 ${\mathrm{Constant}}{}\left({g}\right)$ (2)
 > $\mathrm{GetValue}\left(\right)$
 ${9.80665}$ (3)
 > $\mathrm{GetUnit}\left(\right)$
 $⟦\frac{{m}}{{{s}}^{{2}}}⟧$ (4)
 > $\mathrm{Units}:-\mathrm{UsingSystem}\left(\right)$
 ${\mathrm{SI}}$ (5)
 > $\mathrm{Constant}\left(g,\mathrm{units}\right)$
 ${{\mathrm{Constant}}}_{{\mathrm{SI}}}{}\left({g}\right){}⟦\frac{{m}}{{{s}}^{{2}}}⟧$ (6)

If a system is specified, it is used when displaying and returning the value of the constant.

 > $\mathrm{Constant}\left(g,\mathrm{system}=\mathrm{FPS}\right)$
 ${{\mathrm{Constant}}}_{{\mathrm{FPS}}}{}\left({g}\right)$ (7)
 > $\mathrm{GetValue}\left(\right)$
 ${32.17404856}$ (8)
 > $\mathrm{GetUnit}\left(\right)$
 $⟦\frac{{\mathrm{ft}}}{{{s}}^{{2}}}⟧$ (9)
 > $\mathrm{Constant}\left(g,\mathrm{system}=\mathrm{FPS},\mathrm{units}\right)$
 ${{\mathrm{Constant}}}_{{\mathrm{FPS}}}{}\left({g}\right){}⟦\frac{{\mathrm{ft}}}{{{s}}^{{2}}}⟧$ (10)

The evalf function must be used to return the value of a physical constant object multiplied by a unit object.

 > $\mathrm{evalf}\left(\right)$
 ${32.17404856}{}⟦\frac{{\mathrm{ft}}}{{{s}}^{{2}}}⟧$ (11)