Question: with comment on every script line 8.1-2 Droughts often require city or water utility engineers to develop models of water volume for reservoirs. Using rainfall

with comment on every script line
8.1-2 Droughts often require city or water utility engineers to develop models of water volume for reservoirs. Using rainfall data, evaporation and consumption estimates, an engineer has developed the following model of water volumes in a particular reservoir: V(t) = 10 + 108 (1 - et/100) rt V = volume in liters, t is the time in days, ris the rate of water consumption in liters per day. Write two user-defined functions: a. (2 points) The first function will define the function V(t) for use with the fzero function. b. (3 points) The second function will use fzero to compute how long it will take for the water volume to decrease to x percent of its' initial volume of 10 L. The inputs to the second function should be x and r. Test your functions for the test case of x = 50% and r = 10 liters/day. Answers: Part a) None given Part b) time = 54.1832 days 8.1-2 Droughts often require city or water utility engineers to develop models of water volume for reservoirs. Using rainfall data, evaporation and consumption estimates, an engineer has developed the following model of water volumes in a particular reservoir: V(t) = 10 + 108 (1 - et/100) rt V = volume in liters, t is the time in days, ris the rate of water consumption in liters per day. Write two user-defined functions: a. (2 points) The first function will define the function V(t) for use with the fzero function. b. (3 points) The second function will use fzero to compute how long it will take for the water volume to decrease to x percent of its' initial volume of 10 L. The inputs to the second function should be x and r. Test your functions for the test case of x = 50% and r = 10 liters/day. Answers: Part a) None given Part b) time = 54.1832 days
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
