Question: Write an m-file that uses the false position method to determine the mass of the bungee jumper with a drag coefficient (c_d) of 0.25kg/m to

 Write an m-file that uses the false position method to determine

Write an m-file that uses the false position method to determine the mass of the bungee jumper with a drag coefficient (c_d) of 0.25kg/m to have a velocity of 36m/s after 4s of free fall. Solve the equation given below for the variable m. f(m) = Squareroot gm/C_d tanh (Squareroot gc_d/m middot t) - v(t) Your m-file should prompt the user to enter the lower limit and upper limit and check if the initial guesses bracket a root. If not, your program should prompt the user for new guesses until the user provides values that do bracket the root. Your m-file should then print the iteration number, xl, xu, xr and f(xr) for each iteration. Note that since you are printing values at each iteration, you should not write a function file for the false-position method. Rather, have the false-position code embedded in a regular m-file. Test your m-file for a precision of 0.005 using various initial guesses. The output of your command window should look like that below: Write an m-file that uses the false position method to determine the mass of the bungee jumper with a drag coefficient (c_d) of 0.25kg/m to have a velocity of 36m/s after 4s of free fall. Solve the equation given below for the variable m. f(m) = Squareroot gm/C_d tanh (Squareroot gc_d/m middot t) - v(t) Your m-file should prompt the user to enter the lower limit and upper limit and check if the initial guesses bracket a root. If not, your program should prompt the user for new guesses until the user provides values that do bracket the root. Your m-file should then print the iteration number, xl, xu, xr and f(xr) for each iteration. Note that since you are printing values at each iteration, you should not write a function file for the false-position method. Rather, have the false-position code embedded in a regular m-file. Test your m-file for a precision of 0.005 using various initial guesses. The output of your command window should look like that below

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 Databases Questions!