Student[NumericalAnalysis] - Maple Programming Help

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

Student[NumericalAnalysis]

 AbsoluteError
 compute the absolute error of an approximation

 Calling Sequence AbsoluteError(xe, xa, opts)

Parameters

 xe - realcons; the exact value xa - realcons; the approximated value opts - (optional) equation(s) of the form digits = value

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 AbsoluteError command computes the absolute error of xa with respect to the exact value xe.

Examples

 > $\mathrm{with}\left(\mathrm{Student}[\mathrm{NumericalAnalysis}]\right):$
 > $\mathrm{appr}≔10.0$
 ${\mathrm{appr}}{≔}{10.0}$ (1)
 > $\mathrm{exac}≔9.8$
 ${\mathrm{exac}}{≔}{9.8}$ (2)
 > $\mathrm{AbsoluteError}\left(\mathrm{exac},\mathrm{appr},\mathrm{digits}=5\right)$
 ${0.2}$ (3)