Write a program to compute the root of the function f(x) =x3 + 2 x2 + 10 x - 20 by Newton method (x0 =2 ).Stop computation when the successive values differ by not morethan 0.5 * 10-5 . Evaluate f(x) and f '(x) using nestedmultiplication. The output should contain:
(1) A table showing at each step the value of the root ,the value of the function,and the error based upon successiveapproximation values and percentage error for each method.
(2) A plot showing the variation of percentage error withiteration number for each method on the same graph so as to comparethe method.