Write 2 user-defined functions for water volume to decrease

Assignment Help Civil Engineering
Reference no: EM13320669

Using estimates of rainfall, evaporation, and water consumption, the town engineer developed the following model of the water volume in the reservoir as a function of time

V(t) = 109 + 108(1 - e-t/100) - rt

where V is the water volume in liters, t is time in days, and r is the town's consumption rate in liters per day. Write two user-defined functions. The first function should define the function V(t) for use with the fzero function. The second function should use fzero to compute how long it will take for the water volume to decrease to x percent of its initial value of 109 L. The inputs to the second function should be x and r. Test your functions for the case where x = 50 percent and r = 107 L/day.

Reference no: EM13320669

Questions Cloud

What is the power this meal produces : A person consumes a meal containing 17 kcal. What is the power this meal produces if it is to be "burned off" due to exercise in 6 hours
What is the change in internal energy of the system : A system consists of 4.0 kg of water at 85 degrees Celsius 35 J of work is done on the system by stirring with a paddle wheel, What is the change in internal energy of the system
What is the period of the pendulum : A simple pendulum is constructed from a mass of 2 kg and a massless string of length 3.5 m. What is the period of the pendulum
What is the energy difference between the levels : The anomalous Zeeman effect is studied in an advanced student laboratory. A spectral lamp is filled with the vapor of an unknown atom. What is the energy difference between the levels
Write 2 user-defined functions for water volume to decrease : Using estimates of rainfall, evaporation, and water consumption, the town engineer developed the following model of the water volume in the reservoir as a function of time
What is the minimum diameter mirror on a telescope : What is the minimum diameter mirror on a telescope that would allow you to see details as small as 4.85 km on the moon some 384000 km away
What is the average emf induced in the coil : A closely wound rectangular coil of 95.0 turns has dimensions of 21.0cm by 48.0cm. What is the average emf induced in the coil
Compute the true static height in a glass tube : Pure water at 50 degrees Fahreneit stands in a glass tube of 0.04-in diameter at a height of 6.78 in. Compute the true static height.
Find the force of friction exerted on the puck : A puck slides on a surface for 5.6 m before it stops. If it was moving at a velocity of 15 m/s and has a mass of 1.2 kg, what is the force of friction exerted on the puck

Reviews

Write a Review

Civil Engineering Questions & Answers

  What are the legal ways of doing disposal in the valley

A tank with a volume of 5,000 gal contains salt solution at an initial concentration (C0*) of 70,000 mg/L, but the concentration in the tank (C) needs to be reduced to 500 mg/L. Two approaches are being considered

  Define will a precipiate be consumed or produced at ph

The concentration of cadmium ion (Cd^+2) in water is 225 mg/L. Will a precipiate be consumed or produced at pH 9.0? Will a precipitate be consumed or produced at pH 7.5

  Determine what is the unit discharge at 20 minutes

Assume a time to peak of 15 minutes and the unit peak discharge is 7.0 cfs/in, using the Gamma Function Unit Hydrograph what is the unit discharge at 20 minutes

  Net rate of flow of linear momentum via control surface

Measurements indicate that to cause this flow the force acting on the contents of the control volume is 40i lb. Determine the net rate of flow of linear momentum through the control surface.

  Determine the flow rate of a 2-inch diameter glass pipe

A 2-inch diameter glass pipe is connected to a pipe network in which the pressure is 70 psig. If the length is 300 ft and the outlet is 10 ft above the pipe, determine the flow rate.

  Calculate the head loss using darcy weichbach equation

The ½ inch pipe was found to have an average friction factor of 0.0129 and the ¾ pipe had an average friction factor of 0.0209. The length of the pipes between the two manometer connections are 60 inches each.

  What is lump-sum equivalent cost of project at present time

A major relining of the combustion vessel will occur during the fifth year at a cost of $30,000. If the interest rate is 15% per year, what is the lump-sum equivalent cost of this project at the present time

  Does the second law require that the decrease in entropy

An insulated system contains two solid blocks in contact with each other; one hot and the other cold. After heat transfer over some time, thermal equilibrium is established in the container.

  Show the event that the maximum shear force in the beam

A weight W somewhere between 1 to 10 tons is randomly placed along a beam of 10m long span. Let X denote the distance from the point of applicatoin of the load to the nearest support.

  How fast is the reservoir surface dropping

The flow out of a reservoir is 2 L/s. The reservoir surface is 5 m x 5 m. How fast is the reservoir surface dropping?

  Compounds empirical and molecular formula

A Silane contains 90.31 % silicon and 9.69 % hydrogen by mass. The compound has a molar mass of 62 g/mol. Determine the compound's empirical and molecular formula.

  What is the min length for the off-ramp to provide storage

If the average length of a vehicle is 15 ft and the average space between consecutive vehicles waiting to be served is 3 ft, what is the minimum length for the off-ramp to provide storage for all exiting vehicles 80 percent of the time

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd