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

Info icon This 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 [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 ( i ) iteration number, ( ii )
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern