Get Error - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


ScientificConstants

  

GetError

  

return the uncertainty for a ScientificConstants object

 

Calling Sequence

Parameters

Description

Examples

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

withScientificConstants:

Constantc

Constantc

(1)

GetError

0

(2)

ConstantG

ConstantG

(3)

GetError

3.1×10−15

(4)

Constantme

Constantme

(5)

GetError

1.114295438×10−38

(6)

Units:-UsingSystem

SI

(7)

GetValue

1.223239126×10−8

(8)

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

ElementNa,atomicweight

ElementNa,atomicweight

(9)

GetError

3.321080400×10−33

(10)

GetValue

8.699521571×10−8

(11)

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

ElementNa,atomicweight,system=CGS

ElementCGSNa,atomicweight

(12)

GetError

3.321080400×10−30

(13)

GetValue

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.

See Also

Details of Commands for Elements and Isotopes

Details of Commands for Physical Constants

ScientificConstants

ScientificConstants[Constant]

ScientificConstants[Element]

ScientificConstants[GetUnit]

ScientificConstants[GetValue]

ScientificErrorAnalysis and ScientificConstants

ScientificErrorAnalysis[GetError]

Units/Systems

Units[UsingSystem]