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

Online Help

All Products    Maple    MapleSim


ScientificErrorAnalysis

  

Variance

  

return the variance of a quantity-with-error

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Variance( obj )

Parameters

obj

-

quantity-with-error

Description

• 

The Variance( obj ) command returns the variance of the quantity-with-error obj.

• 

The quantity-with-error obj can have functional dependence on other quantities-with-error.

  

If the quantity-with-error obj does not have functional dependence on other quantities-with-error, the uncertainty of obj is accessed and converted to the variance (by squaring).

  

If the quantity-with-error obj has functional dependence on other quantities-with-error, the variance is calculated using the usual formula of error analysis involving a first-order expansion with the dependent form and covariances between the other quantities-with-error. This process can be recursive.

  

The variance u2y in y, where y depends on the xi, is

  

 

uy2=i=1Nⅆyⅆxi2uxi2+2i=1N1j=i+1Nⅆyⅆxiⅆyⅆxjuxi,xj

  

where uxi is the error in xi, uxi,xj is the covariance between xi and xj, and the partials are evaluated at the central values of the xi.

• 

Variances involving physical constants are calculated naturally and correctly in the implied system of units because central values and errors are obtained from the interface to ScientificConstants.

Examples

withScientificConstants:

withScientificErrorAnalysis:

aQuantity10.,2.:

Variancea

4.

(1)

GetConstanth

Planck_constant,symbol=h,value=6.626070040×10−34,uncertainty=8.1×10−42,units=Js

(2)

VarianceConstanth

6.561×10−83

(3)

GetConstantme

electron_mass,symbol=me,derive=2Rhcα2

(4)

VarianceConstantme

1.241654324×10−76

(5)

GetErrorConstantme2

1.241654323×10−76

(6)

See Also

combine/errors

ScientificConstants

ScientificConstants[Constant]

ScientificConstants[GetConstant]

ScientificConstants[GetError]

ScientificErrorAnalysis

ScientificErrorAnalysis and ScientificConstants

ScientificErrorAnalysis[Covariance]

ScientificErrorAnalysis[GetCorrelation]

ScientificErrorAnalysis[Quantity]

ScientificErrorAnalysis[SetCorrelation]