
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Please hand in a print-out copy and a disk for the program. You must also hand in a print-out of the output results when you run the program. Please write the main program, subroutine and functions in pp. 338-340 of the textbook which calculate the zero or root of a nonlinear equation. The function f(x) of the program must be changed so that the root of the following equation is computed. (1) (a) x - EXP(-x) = 0 , which is in the bounding interval [left,right]= [0, 10] is computed. Use tolerance 1E-6 and Maximum number of iterations 200. (2) Repeat (1) for the nonlinear equation in : Programming exercise 10.5 (c) in text page 345. But you must use the bounding interval [left,right]= [-10, 0]. Use tolerance 1E-6 and Maximum number of iterations 200.