Docsity

Numerical Methods_Part 2_Approximations and Round-off Errors_Chapter 3, Study notes of Numerical Methods in Engineering

Partial preview of the text

Download Numerical Methods_Part 2_Approximations and Round-off Errors_Chapter 3 and more Study notes Numerical Methods in Engineering in PDF only on Docsity!

Approximations and Round-off Errors

 Numerical error is defined as the difference between the analytical solution and the numerical solution.  Since analytical solutions cannot be obtained for every engineering problem, numerical errors cannot be computed exactly.  Numerical errors are two types: round-off errors and truncation errors.

 Significant figures are those digits with known values. They are identified by moving from left to right starting with the first non-zero digit and ending with the last digit of the number.  The following rules are applied:  All non-zero digits are significant.  Zeros at the beginning of the number are not significant. They only indicate the position of the decimal point.

 Zeros between digits are significant.  Zeros at the end of a decimal number are significant.  Examples:  0.000345 3 significant figures  300.125^6 significant^ figures  312.3400^7 significant^ figures  0.005810^4 significant^ figures  

8 significant figures 6 significant figures

 Examples: 268400 can be written as: 2.684 × 10 5 2.6840 × 10 5 2.68400 × 10 5 4 significant figures 5 significant figures 6 significant figures

 The concept of significant figures has two important implications for the study of numerical methods:  Criteria should be developed to specify how confident the approximate result from numerical solution is.  Quantities such as  or e cannot be expressed exactly by a limited number of digits. However computers only represent these numbers by only a finite number of significant figures. Hence, there is a round-off error involved in this.

 Numerical methods should be sufficiently accurate or unbiased to meet the requirements of a particular engineering problem.  They should be also precise enough for satisfactory engineering design.  The term “ error ” will be used to represent both inaccuracy and imprecision in numerical predictions.

 The relationship between the exact (true) result and the approximation can be formulated as:  Hence, the true error (the exact value of the error) is equal to the difference between the true result and the approximation:

True value  approximation  error

True errorE ttrue valueapproximation

 The previous definition for error does not take into account the order of the magnitude of the value being computed. For instance, an error of 1 cm is much more significant when the measurement is a nail rather than a tunnel.  To account for this, the error is normalized to the true value as shown in the following formula:

 Example 2.1: The measurements of the lengths of a bridge and a rivet are 9999 and 9 cm, respectively. Compute the true error and the true percent relative error if the true values are 10,000 and 10 cm, respectively.  Example 2.1-Solution: The error for measuring the bridge:

E

t

 10000  9999  1 cm

 Example 2.1- Solution…: The error for measuring the rivet: The percent relative error for measuring the bridge: E t  10  9  1 cm

t  

 In real-world applications, the true value is sometimes unknown or difficult to obtain due to the complexity of the system. The error is normalized using the best available estimate of the true value. In this case, the percent relative error is determined as:

approximateerror

approximation

a

 Certain numerical methods require an iterative approach to reach solutions due to the complexity of the system. In such an approach, a current approximation is made based on a previous approximation. In this case, the error is estimated as:  current approximationprevious approximation 100% currrent approximation a