consider the following question: The velocity of water, π£ (m/s), discharged from aβ¦
- User
consider the following question:
The velocity of water, π£ (m/s), discharged from a cylindrical tank through a long pipe can be computed as π£ = β2ππ» tanh (β2ππ» 2πΏ π‘) where π = 9.81 m/s2, π» = initial head (m), πΏ = pipe length (m), and π‘ = elapsed time (s). a. Graphically determine the head needed to achieve π£ = 4 m/s, in 3 s for 5 m-long pipe. b. Determine the head for π£ = 3 β 6 m/s (at 0.5 m/s increments) and times of 1 to 3 s (at 0.5 s 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?
starting with b. change the tolerance of the code so the estimated relative error is used instead which is 0.1%. the estimated relative error is as follows: abs((X^n - x^(n-1))/X^(n-1)) where X^n is is the estimated numerical solution in the last iteration and X^(n-1) is the estimated numerical solution in the preceding iteration.
Then write the code for c
- Assistant
- User
consider the following question:
The velocity of water, π£ (m/s), discharged from a cylindrical tank through a long pipe can be computed as π£ = β2ππ» tanh (β2ππ» 2πΏ π‘) where π = 9.81 m/s2, π» = initial head (m), πΏ = pipe length (m), and π‘ = elapsed time (s). a. Graphically determine the head needed to achieve π£ = 4 m/s, in 3 s for 5 m-long pipe. b. Determine the head for π£ = 3 β 6 m/s (at 0.5 m/s increments) and times of 1 to 3 s (at 0.5 s 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?
starting with b. change the tolerance of the code so the estimated relative error is used instead which is 0.1%. the estimated relative error is as follows: abs((X^n - x^(n-1))/X^(n-1)) where X^n is is the estimated numerical solution in the last iteration and X^(n-1) is the estimated numerical solution in the preceding iteration.
Then write the code for c. Write all code in matlab
- Assistant