Docsity

Types of Errors in Aerospace Engineering: Absolute, Relative, Percent, Truncation, and Rou, Study notes of Aerospace Engineering

Toggle sidebar
bg1
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,
True Value
()
x = Approximate Value
()
x
~
+ Total Error
()
E. (1)
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,
xxEa
~
−= . (2)
Relative error is the ratio of absolute error to the true value,
x
E
Ea
r=, (3)
and the percent error,
%100×= rp EE (4)
These definitions can be extended to the error in a function caused by,
• An error in an input value,
() ()
xfxfEa
~
−= ,
• Approximating the function numerically,
() ()
xfxfEa
~
−= , causing an error in the
output value,
• Or both,
() ()
xfxfEa
~
~
−= .
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
necessary for the computer process and store the number. For example,
π
has an infinite number
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.
pf2

Partial preview of the text

Download Types of Errors in Aerospace Engineering: Absolute, Relative, Percent, Truncation, and Rou and more Study notes Aerospace Engineering in PDF only on Docsity!

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,

True Value ( ) x = Approximate Value ( ~ x^ )+ Total Error ( E ). (1)

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

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,

  • An error in an input value, E (^) a = f ( ) x − f ( x^ ~),
  • Approximating the function numerically, E (^) a f ( ) x f ( ) x

= − , causing an error in the output value,

  • Or both, E (^) a f ( ) x f ( x^ ~)

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

necessary for the computer process and store the number. For example, π has an infinite number

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

ε = ~^ +^1 −~ (5)

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,

ε a < C a (6)

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

ε p = ε r × 100 %< C p (8)

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

magnitude of O [ 10 −^1 ]. An answer correct to through the third decimal place has order of

magnitude of O [ 10 −^4 ].

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