CSCI 3321  Assignment #2

Secant Method





 Construct a computer program that uses the Secant Method to solve the problem:
                                    f(x)  =   
x5 - 0.2  sin (x) - 10.0   =  0

Starting with the initial guesses of x = 1.0 and x = 2.0,  obtain an approximation to x such that  |f(x)| < 0.000000001. 
On your output, show the iteration number (n), the approximate value of x on the n-th iteration (xn), and the value of f(xn).
Show the values to 9 or 10 digits.  (True answer is about 1.591181352398073 ).