compute the number of significant digits of an approximation - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Education : Student Package : Numerical Analysis : Computation : Student/NumericalAnalysis/NumberOfSignificantDigits

Student[NumericalAnalysis][NumberOfSignificantDigits] - compute the number of significant digits of an approximation

Calling Sequence

NumberOfSignificantDigits(xe, xa, opts)

Parameters

xe

-

realcons; the exact value

xa

-

realcons; the approximate value

opts

-

(optional) equation(s) of the form keyword = value, where keyword is: digits; the options for computing the number of significant digits

Description

• 

The NumberOfSignificantDigits command computes the number of significant digits of an approximation using the exact value and approximate value.

• 

The the number of significant digits must obey: 0.510se and e<0.510s, where s is the number of significant digits and e is the relative error.

Examples

withStudent&lsqb;NumericalAnalysis&rsqb;&colon;

xe:=9.81

xe:=9.81

(1)

xa:=9.63

xa:=9.63

(2)

NumberOfSignificantDigitsxe&comma;xa

2

(3)

See Also

Student[NumericalAnalysis], Student[NumericalAnalysis][AbsoluteError], Student[NumericalAnalysis][ComputationOverview], Student[NumericalAnalysis][RelativeError]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam