Rounding Errors
Given a real number and an approximation for it , we can find how much error there is in the approximation.
The actual error is , the absolute error is and the relative error is:
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
as