User:PeterDixon77/sandbox

From Wikipedia, the free encyclopedia

In order to apply Newton's method to find the reciprocal of , it is necessary to find a function which has a zero at . The obvious such function is , but the Newton–Raphson iteration for this is unhelpful since it cannot be computed without already knowing the reciprocal of . Moreover multiple iterations for refining reciprocal are not possible since higher order derivatives do not exist for . A function which does work is , for which the Newton–Raphson iteration gives

which can be calculated from using only multiplication and subtraction, or using two fused multiply–adds.

From a computation point of view the expressions and are not equivalent. To obtain a result with a precision of n bits while making use of the second expression one must compute the product between and with double the required precision (2n bits). In contrast the product between and need only be computed with a precision of n bits.

If the error is defined as then