Euler Method - Rounding Errors

Rounding Errors

The discussion up to now has ignored the consequences of rounding error. In step n of the Euler method, the rounding error is roughly of the magnitude εyn where ε is the machine epsilon. Assuming that the rounding errors are all of approximately the same size, the combined rounding error in N steps is roughly Nεy0 if all errors points in the same direction. Since the number of steps is inversely proportional to the step size h, the total rounding error is proportional to ε / h. In reality, however, it is extremely unlikely that all rounding errors point in the same direction. If instead it is assumed that the rounding errors are independent rounding variables, then the total rounding error is proportional to .

Thus, for extremely small values of the step size, the truncation error will be small but the effect of rounding error may be big. Most of the effect of rounding error can be easily avoided if compensated summation is used in the formula for the Euler method.

Read more about this topic:  Euler Method

Famous quotes containing the words rounding and/or errors:

    People forget that it is the eye that makes the horizon, and the rounding mind’s eye which makes this or that man a type or representative of humanity with the name of hero or saint.
    Ralph Waldo Emerson (1803–1882)

    Let us pardon him his hope of a vain apocalypse, and of a second coming in great triumph upon the clouds of heaven. Perhaps these were the errors of others rather than his own; and if it be true that he himself shared the general illusion, what matters it, since his dream rendered him strong against death, and sustained him in a struggle to which he might otherwise have been unequal?
    Ernest Renan (1823–1892)