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.
|
|
|
Options
|
|
|
A positive integer; the environment variable Digits will be set to this integer during the execution of this procedure. By default, Digits is 10.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
|
|
Download Help Document
Was this information helpful?