RelativeError - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Student[NumericalAnalysis]

  

RelativeError

  

compute the relative error of an approximation

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

RelativeError(xe, xa, opts)

Parameters

xe

-

realcons; the exact value

xa

-

realcons; the approximated value

opts

-

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

Options

• 

digits = posint

  

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

Description

• 

The RelativeError command computes the relative error of xa with respect to the exact value xe.

Examples

withStudentNumericalAnalysis:

appr2.89×108

appr2.89×108

(1)

exac2.98×108

exac2.98×108

(2)

RelativeErrorexac,appr,digits=5

0.030201

(3)

See Also

Student[NumericalAnalysis]

Student[NumericalAnalysis][AbsoluteError]

Student[NumericalAnalysis][ComputationOverview]