Docsity

2 Questions on Introduction Computer Program Scientific Application | CS 1073, Assignments of Computer Science

Toggle sidebar
bg1
Program HW #4: CS 1073;
Date: 8 April 2009
Due: 29 April 2009
1) Hand in a printout copy of the program together with the results of the test.
2) Email the file as attachment in an email to : [email protected] with
subject: CS1073-HW3-YOUR-NAME .
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.

Partial preview of the text

Download 2 Questions on Introduction Computer Program Scientific Application | CS 1073 and more Assignments Computer Science in PDF only on Docsity!

Program HW #4: CS 1073;

Date: 8 April 2009

Due: 29 April 2009

1) Hand in a printout copy of the program together with the results of the test.

2) Email the file as attachment in an email to : [email protected] with

subject: CS1073-HW3-YOUR-NAME.

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.