The Newton's algorithm described above can be expressed algebraically (in pseudocode) as shown in equation 4.35. The function for which the roots are sought is fix), and its derivative is f(x). The slope m of the tangent line is equal to f(x) at the current point Xi Yi.