Script started on Fri Jun 7 21:29:07 2002 [psy@delysid /tmp]$ root This program finds the root of f(x). Enter the maximum number of iterations: 4 Enter the tolerance: 0.0001 Enter the initial guess p0: 1.0 Enter the initial guess p1: 2.0 MENU ==== 1. Bisection method 2. Newton--Raphson method 3. Secant method 4. Quit Your selection: 1 Bisection method: Iteration Approximation --------- ------------- 1 1.500000000000 2 1.250000000000 3 1.375000000000 4 1.312500000000 Root not found. MENU ==== 1. Bisection method 2. Newton--Raphson method 3. Secant method 4. Quit Your selection: 2 Newton--Raphson method: Iteration Approximation --------- ------------- 1 1.411356033481 2 1.318570973920 3 1.312016536386 4 1.311985079448 The root is 1.311985. MENU ==== 1. Bisection method 2. Newton--Raphson method 3. Secant method 4. Quit Your selection: 3 Secant method: Iteration Approximation --------- ------------- 1 1.183787976096 2 1.262304083505 3 1.317052396138 4 1.311797457209 Root not found. MENU ==== 1. Bisection method 2. Newton--Raphson method 3. Secant method 4. Quit Your selection: 4 [psy@delysid /tmp]$ exit Script done on Fri Jun 7 21:29:30 2002