 ScientificConstants - Maple Programming Help

Home : Support : Online Help : Science and Engineering : Scientific Constants : Functions : ScientificConstants/GetValue

ScientificConstants

 GetValue
 return the value of a ScientificConstants object

 Calling Sequence GetValue( sc_obj )

Parameters

 sc_obj - ScientificConstants object

Description

 • Given a ScientificConstants object, that is, a Constant() or Element() object, the GetValue( sc_obj ) command returns the value represented by the object in the appropriate system of units. For more information about systems of units, see Units/Systems.
 • If the ScientificConstants object has no system of units specified, the current system of units is used for evaluation.
 • If the ScientificConstants object has a system of units specified, by using the 'system' option, that system of units is used for evaluation.
 • For Element() objects, if the stored property value is a procedure, it is evaluated with any given parameters of the property as arguments.  Any error is rethrown, although it is expected that such an error would have been thrown at the time of construction of the Element object (when a trial evaluation is done).  The result is passed to the required units conversion.
 • To access the value of a quantity-with-error object of ScientificErrorAnalysis that is not a ScientificConstants object, use the ScientificErrorAnalysis[GetValue] command.  See ScientificErrorAnalysis and ScientificConstants for more details.

Examples

 > $\mathrm{with}\left(\mathrm{ScientificConstants}\right):$
 > $\mathrm{Constant}\left(c\right)$
 ${\mathrm{Constant}}{}\left({c}\right)$ (1)
 > $\mathrm{GetValue}\left(\right)$
 ${299792458}$ (2)
 > $\mathrm{Units}:-\mathrm{UsingSystem}\left(\right)$
 ${\mathrm{SI}}$ (3)
 > $\mathrm{Constant}\left(c,\mathrm{system}=\mathrm{CGS}\right)$
 ${{\mathrm{Constant}}}_{{\mathrm{CGS}}}{}\left({c}\right)$ (4)
 > $\mathrm{GetValue}\left(\right)$
 ${29979245800}$ (5)
 > $\mathrm{Element}\left(\mathrm{Na},\mathrm{atomicweight}\right)$
 ${\mathrm{Element}}{}\left({\mathrm{Na}}{,}{\mathrm{atomicweight}}\right)$ (6)
 > $\mathrm{GetValue}\left(\right)$
 ${3.817543727}{}{{10}}^{{-26}}$ (7)
 > $\mathrm{Element}\left(\mathrm{Na},\mathrm{atomicweight},\mathrm{system}=\mathrm{CGS}\right)$
 ${{\mathrm{Element}}}_{{\mathrm{CGS}}}{}\left({\mathrm{Na}}{,}{\mathrm{atomicweight}}\right)$ (8)
 > $\mathrm{GetValue}\left(\right)$
 ${3.817543727}{}{{10}}^{{-23}}$ (9)