Question
The concentration of pollutant bacteria c(t) in a lake decreases according to the following expression (unit is cfu/ml): c = 75e1.5t + 20e0.075t Well use
The concentration of pollutant bacteria c(t) in a lake decreases according to the following expression (unit is cfu/ml):
c = 75e1.5t + 20e0.075t
Well use various methods to determine the time required for the bacteria concentration to be reduced to a safe level of 15 cf u/ml.
(a) (5 pts.) Write a Matlab code to solve this problem using Newtons method with an ini- tial guess of t0 = 0 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) approximate relative error. Print your code and the output of your code, and include them in your solutions.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started