lacunary - Mathnotes

Rounding Errors

Given a real number p and an approximation for it p, we can find how much error there is in the approximation.

The actual error is pp, the absolute error is pp, and the relative error is:

|pp||p|.

When using computers to do floating-point arithmetic, rounding errors will occur because floating-point numbers have finite precision.

Nesting Technique

We can use a nesting technique to reduce rounding errors for some calculations.

For example, we can rewrite

f(x)=x36.1x2+3.2x+1.5

as

f(x)=(x6.1)x+3.2)x+1.5.