Question: Available for you to use in this problem is the following function: function [ root , err _ approx,iter ] = bisection ( f ,

Available for you to use in this problem is the following function:
function [root,err_approx,iter]= bisection(f,xl,xu, err_stop, maxiter)
Recall that the formula for the velocity of a bungee jumper from Section 2.1 is:
v(t)=mgc2tanh(cgm2t)
Note that v(t) is the velocity of the jumper, g is the acceleration of gravity, m is the mass of the jumper, and c is the (simplisitic) drag coefficient for air resistance.
Write a script that uses the bisection function to estimate the drag coefficient needed for a 95-kg bungee jumper to have a velocity of 46ms after 9 sec of free fall, the approximate relative
percent error, and the number of iterations needed. Start with initial guesses xl=0.2 and xu=0.5, and continue until the approximate relative percent error falls below 5%. Assume
g=9.81ms2.
Requirements:
Assign the following variables to the given values: m=95,v=46,t=9, and g=9.81
Create an anonymous function you will use to solve this problem.
Assign the variable root to the solution of the problem.
Assign the variable err_approx to the approximate relative percent error after the solution is found.
Assign the variable iter to the number of iterations needed until the error fell below the threshold.
Available for you to use in this problem is the

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