ENGR 6101: C OMPUTATIONAL E NGINEERING Problem Set 2 (due Wednesday in my mailbox by 4pm, 09/08) Questions: The concentration of pollutant bacteria c in a lake decreases according to c = 75 e-1 . 5 t + 20 e-0. 075 t Determine the time required for the bacteria concentration to be reduced to 15. 1. (3 pts.) Write a Matlab code to solve this problem using Newton’s method with an initial guess of t = 6 and stopping criterion of 0 . 5% approximate relative error. At each iteration, your code should print ( i ) iteration number, ( ii ) approximated value of t, and ( iii ) estimated error 1 . Print your code, and the output of your code, and include them in your solution. Name your code as newton.m and submit soft copy as an e-mail attachment to [email protected]2. (3 pts.) Write a Matlab code to solve this problem using bisection method. Take your initial interval to be [0 , 6 ] . Use the current interval length for error and stopping criterion of 0 . 5% approximate relative error. At each iteration, your code should print
This is the end of the preview. Sign up
access the rest of the document.
This note was uploaded on 03/16/2011 for the course ENGR 8101 taught by Professor Canor during the Fall '08 term at UGA.