Читать книгу Applied Numerical Methods Using MATLAB - Won Y. Yang - Страница 32

1.2.4 Error Propagation

Оглавление

In this section, we will see how the errors of two numbers, x and y, are propagated with the four arithmetic operations. Error propagation means that the errors in the input numbers of a process or an operation cause the errors in the output numbers.

Let their absolute errors be εx and εy, respectively. Then the magnitudes of the absolute/relative errors in the sum and difference are


(1.2 13)

(1.2 14)

From this, we can see why the relative error is magnified to cause the ‘loss of significance’ in the case of subtraction when the two numbers X and Y are almost equal so that |XY| ≈ 0.

The magnitudes of the absolute and relative errors in the multiplication/division are


(1.2 15)

(1.2 16)


(1.2 17)

(1.2 18)

This implies that, in the worst‐case, the relative error in multiplication/division may be as large as the sum of the relative errors of the two numbers.

Applied Numerical Methods Using MATLAB

Подняться наверх