Description
hi
i need you to answer the questions on MATLAB i just need the code of it
thanks
1. Write an M-file that uses the bisection method to determine the drag coefficient needed so that an 95-kg bungee jumper has a velocity of 46 m/s after 9 s of free fall. Note: The acceleration of gravity is 9.81 m/s2. Start with initial guesses of xl = 0.2 and xu = 0.5 and iterate until the approximate relative error falls below 5%. The following is an equation describing the relationship between velocity, mass, gravity, the drag coefficient, and time:
2. Determine the positive real root of ln(x2 ) = 0.7
(a) graphically
(b) using three iterations of the bisection method, with initial guesses of xl = 0.5 and xu = 2
(c) using three iterations of the false-position method, with the same initial guesses as in (b)
3. Write an M-file to employ fixed-point iteration to locate the root of
Use an initial guess of x0 = 0.5 and iterate until ?a ? 0.01%. Verify that the process is linearly convergent as described in the class slides.
Unformatted Attachment Preview
Purchase answer to see full attachment
Explanation & Answer
Attached.
1
ENGR 328 Homework 4
Question 1:
Answer :
Matlab Code:
Output:
2
Question 2:
Answer:
a. Graphically:
Matlab code:
%(a) graphically
x = -10:.01:10;
f = @(x) log(x...