compute the relative error of an approximation - Maple Help

Online Help

All Products    Maple    MapleSim


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

Student[NumericalAnalysis][RelativeError] - compute the relative error of an approximation

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

Description

• 

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

Examples

withStudent[NumericalAnalysis]:

appr:=2.89108

appr:=2.89108

(1)

exac:=2.98108

exac:=2.98108

(2)

RelativeErrorexac,appr,digits=5

0.030201

(3)

See Also

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


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