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

Online Help

Student[NumericalAnalysis]

  

NumberOfSignificantDigits

  

compute the number of significant digits of an approximation

 

Calling Sequence

Parameters

Options

Description

Examples

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

Options

• 

digits = posint

  

A positive integer; the environment variable Digits will be set to this integer during the execution of this procedure. By default this is set to 10.

Description

• 

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

• 

The number, SD, of significant digits is computed by the formula

  

This formula returns the largest integer  such that  and  differ by less than  units in the th place.  For example, for  and  we have , because the difference between  and  is  units in the 5th place (digit), while for  we have  because the difference is now  units in the 5th place (so too large to set ).

Examples

(1)

(2)

(3)

(4)

(5)

(6)

See Also

Student[NumericalAnalysis]

Student[NumericalAnalysis][AbsoluteError]

Student[NumericalAnalysis][ComputationOverview]

Student[NumericalAnalysis][RelativeError]

 


Download Help Document