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

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Packages : ScientificErrorAnalysis

Overview of the ScientificErrorAnalysis Package

 

Basic Functionality

Examples

Basic Functionality

• 

The ScientificErrorAnalysis package provides representation and construction of numerical quantities that have a central value and associated uncertainty or error, which is some measure of the degree of precision to which the quantity's value is known.  Various

Accessing ScientificErrorAnalysis Package Commands

• 

Each command in the ScientificErrorAnalysis package can be accessed by using either the long form or the short form of the command name in the command calling sequence.

  

Long form

ScientificErrorAnalysis:-Quantity(20., 1.);

  

Short form

with(ScientificErrorAnalysis):

Quantity(20., 1.);

Essential ScientificErrorAnalysis Package Commands

• 

The essential ScientificErrorAnalysis commands used for error assignment and computation are:

combine/errors

combine quantities-with-error in an expression

Covariance

return the covariance between two quantities-with-error

GetCorrelation

return the correlation between two quantities-with-error

GetError

return the uncertainty of a quantity-with-error

GetValue

return the central value of a quantity-with-error

Quantity

construct a quantity-with-error

SetCorrelation

set the value of the correlation between two quantities-with-error

Variance

return the variance of a quantity-with-error

  

To display the help page for a particular command, click the corresponding hyperlink.

• 

For more details on these commands and their use together, see Details of ScientificErrorAnalysis.

Rounding Rules

• 

The ScientificErrorAnalysis commands used to apply and create rounding rules are:

AddRule

add a new rounding rule

ApplyRule

apply a rounding rule to Quantity objects

GetRule

return the procedure of a rounding rule

GetRules

return the names of available rounding rules

HasRule

determine whether a symbol is the name of an available rounding rule

UseRule

set the default rounding rule

UsingRule

return the name of the default rounding rule

  

To display the help page for a particular command, click the corresponding hyperlink.

• 

For more details on applying rules, see Details of ScientificErrorAnalysis.

  

For details on the predefined rules, see Details of the Predefined Rounding Rules.

Quantity-with-Error Structures

• 

The ScientificErrorAnalysis commands for maintaining quantity-with-error structures are:

AddStructure

add the interface of a new quantity-with-error structure

GetStructure

return the interface of an available quantity-with-error structure

GetStructures

return the types of all available quantity-with-error structures

  

To display the help page for a particular command, click the corresponding hyperlink.

Details

• 

The ScientificErrorAnalysis package does not perform interval arithmetic.  That is, the error value of an object in the ScientificErrorAnalysis package does not represent an interval in which possible values must be contained. For information on interval arithmetic, see the Tolerances package.

• 

ScientificErrorAnalysis also recognizes the objects of the ScientificConstants package, many values of which have an associated uncertainty.

• 

For a discussion of how the ScientificErrorAnalysis and ScientificConstants packages interact, see ScientificErrorAnalysis and ScientificConstants.

• 

For examples using the ScientificErrorAnalysis package, see the ScientificErrorAnalysis Example Worksheet.

Examples

withScientificErrorAnalysis:

xQuantity2.3,0.1,relative

xQuantity2.3,0.23

(1)

yQuantity9.5,0.2,relative

yQuantity9.5,1.90

(2)

SetCorrelationx,y,0.2

combinex3yy,errors

Quantity0.2807368421,0.4169777056

(3)

ApplyRule,round2

Quantity0.28,0.42

(4)

combinex2+yy,errors,correlations=false

Quantity1.556842105,0.1574987314

(5)

See Also

ScientificConstants

ScientificErrorAnalysis and ScientificConstants

ScientificErrorAnalysis Example Worksheet

ScientificErrorAnalysis/Details

ScientificErrorAnalysis/References

ScientificErrorAnalysis/rules