Student[NumericalAnalysis] - 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

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

withStudent[NumericalAnalysis]:

appr2.89108

appr:=2.89108

(1)

exac2.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