

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


D. Haugli, Lecturer Aer E 161 Aerospace Engineering 2/3/2005 Error Definitions, Page 1 Iowa State University
Error Definitions
The true value of a number, x , can be expressed in terms of total error as,
where ~ x^ is the approximate value of x obtained through experimentation or numerical analysis. Total error can be represented as absolute, relative or percent error. When the true value is unknown, total error can still sometimes be approximated.
Representation. Absolute error is defined as the absolute value of the difference between the true and approximate values,
E (^) a = x − x^ ~. (2)
Relative error is the ratio of absolute error to the true value,
x
E (^) r = a , (3)
and the percent error,
E (^) p = Er × 100 % (4)
These definitions can be extended to the error in a function caused by,
= − , causing an error in the output value,
Numerical Errors. Numerical methods and computations involve numerical errors. Numerical errors consist of round-off errors and truncation errors , which together are sometimes called total numerical error.
Round-off errors occur when a real, base-10 number is converted to or from binary, which is
of digits, but only a few of those digits can be stored in the computer. Round-off errors can significantly undermine the accuracy (and precision) of a numerical solution, especially a solution involving repetitive calculations, where each calculation depends on the previous step. Round-off errors can be found in input and output values.
D. Haugli, Lecturer Aer E 161 Aerospace Engineering 2/3/2005 Error Definitions, Page 2 Iowa State University
Truncation errors are the result of approximating a complex equation for which an analytical solution cannot be obtained. For example, approximations derived from Taylor Series such as the Newton-Raphson method for finding roots or finite differences to approximate derivatives involve truncation errors. These errors generally occur in output values.
Approximate Errors. Many numerical solutions require an iterative approach to solve a system
of equations. In this approach, an approximation at step n +1, ~ x^ n +^1 , is made based on the
previous approximation, x ~^ n. Often, the true value is unknown (which is why the solution is being approximated in the first place), so an approximate absolute error,
n n a x^ x
is computed instead. This definition assumes that ~ x^ n +^1 is closer to the true value than x ~^ n. The solution is said to “converge” when the difference becomes smaller than some convergence criterion,
For example, Ca =. 0001 would correspond to a solution precise to four places right of the
decimal.
Relative and percent errors can also be approximated and compared to corresponding convergence criteria:
n^ r
a r C x
Why is the denominator ~ x^ n +^1 in Equation (7)?
Order of Magnitude. Order of magnitude refers to the relative size of an error. A simplistic way to visualize this concept is that an answer off by a tenth of a decimal place has order of
This concept is used to compare numerical methods and determine which method might give a better approximation to a solution. The smaller the order-or-magnitude of an error, the better the approximation, and in general, the more complex the computation (mathematically and in CPU- hours).