Question: three diferent codes... using python please. 1) Bisenction method 2) False Position Method 3) Modified False Position Method P1 50 pts The velocity of water
P1 50 pts The velocity of water v(m/s) discharged from a cylindrical tank through a long pipe can be computed as: v=2gHtanh(2L2gH) where g=9.81m/s2,H= initial head (m),L= pipe length (m), and t= elapsed time (s). We would like to determine H needed to achieve v=5m/s in t=2.5s for L=4m. Use initial guesses of Hl=0 and Hu=2. (a 5pts ) Plot the function with Python between H1 and Hu (use a step of 0.1 ) (b) Find H with a stopping criterion of a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
