Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Mining Concepts And Techniques

Authors: Jiawei Han, Micheline Kamber, Jian Pei

3rd Edition

0123814790, 9780123814791

More Books

Students also viewed these Databases questions