ScientificConstants - Maple Programming Help

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

ScientificConstants

 GetError
 return the uncertainty for a ScientificConstants object

 Calling Sequence GetError( sc_obj )

Parameters

 sc_obj - ScientificConstants object

Description

 • Given a ScientificConstants object, that is, a Constant() or Element() object, the GetError( sc_obj ) command returns the object's uncertainty or "error" 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.
 • If the uncertainty of the ScientificConstants object has not been defined, undefined is returned.
 • For derived physical constants, ScientificErrorAnalysis is used to calculate the error.
 • For Element() objects, if the stored property uncertainty is a procedure, it is evaluated with any given parameters of the property as arguments.  Any error is rethrown. The result is passed to the required units conversion.
 • To access the error of a quantity-with-error object of ScientificErrorAnalysis that is not a ScientificConstants object, use the ScientificErrorAnalysis[GetError] 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{GetError}\left(\right)$
 ${0}$ (2)
 > $\mathrm{Constant}\left(G\right)$
 ${\mathrm{Constant}}{}\left({G}\right)$ (3)
 > $\mathrm{GetError}\left(\right)$
 ${1.0}{}{{10}}^{{-13}}$ (4)
 > $\mathrm{Constant}\left({m}_{e}\right)$
 ${\mathrm{Constant}}{}\left({{m}}_{{e}}\right)$ (5)
 > $\mathrm{GetError}\left(\right)$
 ${7.179221837}{}{{10}}^{{-38}}$ (6)
 > $\mathrm{Units}:-\mathrm{UsingSystem}\left(\right)$
 ${\mathrm{SI}}$ (7)
 > $\frac{}{\mathrm{GetValue}\left(\right)}$
 ${7.881129510}{}{{10}}^{{-8}}$ (8)

Determine the absolute (in SI) and relative error of the atomic weight of sodium.

 > $\mathrm{Element}\left(\mathrm{Na},\mathrm{atomicweight}\right)$
 ${\mathrm{Element}}{}\left({\mathrm{Na}}{,}{\mathrm{atomicweight}}\right)$ (9)
 > $\mathrm{GetError}\left(\right)$
 ${3.321080400}{}{{10}}^{{-33}}$ (10)
 > $\frac{}{\mathrm{GetValue}\left(\right)}$
 ${8.699521571}{}{{10}}^{{-8}}$ (11)

Determine the absolute (in CGS) and relative error of the atomic weight of sodium.

 > $\mathrm{Element}\left(\mathrm{Na},\mathrm{atomicweight},\mathrm{system}=\mathrm{CGS}\right)$
 ${\mathrm{Element}}{[}{\mathrm{CGS}}{]}{}\left({\mathrm{Na}}{,}{\mathrm{atomicweight}}\right)$ (12)
 > $\mathrm{GetError}\left(\right)$
 ${3.321080400}{}{{10}}^{{-30}}$ (13)
 > $\frac{}{\mathrm{GetValue}\left(\right)}$
 ${8.699521571}{}{{10}}^{{-8}}$ (14)

As expected, in different systems of units, the absolute errors for the atomic weight are different, but the relative errors are the same.