hw2 - E NGR 6101: C OMPUTATIONAL E NGINEERING Problem Set 2...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
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 caner@uga.edu. 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
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.
Ask a homework question - tutors are online