Question: WRITE THE MATLAB CODE FOR THIS: The velocity of water, v ( m s ) , discharged from a cylindrical tank through a long pipe

WRITE THE MATLAB CODE FOR THIS:
The velocity of water, v(ms), discharged from a cylindrical tank through a long pipe can be computed
as
v=2gH2tanh(2gH22Lt)
where g=9.81ms2,H= initial head (m),L= pipe length (m), and t= elapsed time (s).
a. Graphically determine the head needed to achieve v=5ms, in 2.5s for 6m-long pipe.
b. Determine the head for v=4-7ms(at 0.5ms increments) and times of 2 to 4s(at 0.5s
increments) via the bisection method with stopping criteria of 0.1% estimated relative error.
c. Perform the same series of solutions with the Regula Falsi method where you choose the same
starting points and convergence tolerance.
d. Which numerical method converged faster?
WRITE THE MATLAB CODE FOR THIS: The velocity of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Civil Engineering Questions!