Answered step by step
Verified Expert Solution
Question
1 Approved Answer
i need a MATLAB answer In this lab session, we aim to use a method of root-finding: the bisection method. it will be implemented as
i need a MATLAB answer
In this lab session, we aim to use a method of root-finding: the bisection method. it will be implemented as distinct matlab functions, and will be called by another script containing the problem to be selved, Part 1: Create a program script which seeks for the root of a function using Bisection Method - Write an M-file to calculate the root of f(x)=0 using Bisection method to E0=e=0.0001. Use xL and xV as initial guesses. (Note that e is used to define approximate error in the flowchart). Your program should also plot the percent relative error (ca) versus iteration number at the end of the calculations. Figure 1. A flowchart of bisection method for root finding - Use the program script that you wrote to determine the drag coefficient needed so that an 80kg bungee jumper has a velocity of 36m/s after 4sec of free fall. Note that gravitational acceleration g=9.81m/s2. Name the main program m-file as "rootfind" Recall the analytical solution that can be used to predict fall velocity as a function of time: v(t)=cdgmtanh(mgcdt) and you need to rearrange this function to get the form f(cdt)=0 Make sure your program seript (code) has these logical parts: input, definition, execution, output. - Include a complete plot of f(cd) for [0,1] interval (Note that: graphical method may help you to select the lower and the upper initial guesses for the Bisection method) - Display the estimated root, error and the number of iterations at the end (include these in your report together with your program script] In this lab session, we aim to use a method of root-finding: the bisection method. it will be implemented as distinct matlab functions, and will be called by another script containing the problem to be selved, Part 1: Create a program script which seeks for the root of a function using Bisection Method - Write an M-file to calculate the root of f(x)=0 using Bisection method to E0=e=0.0001. Use xL and xV as initial guesses. (Note that e is used to define approximate error in the flowchart). Your program should also plot the percent relative error (ca) versus iteration number at the end of the calculations. Figure 1. A flowchart of bisection method for root finding - Use the program script that you wrote to determine the drag coefficient needed so that an 80kg bungee jumper has a velocity of 36m/s after 4sec of free fall. Note that gravitational acceleration g=9.81m/s2. Name the main program m-file as "rootfind" Recall the analytical solution that can be used to predict fall velocity as a function of time: v(t)=cdgmtanh(mgcdt) and you need to rearrange this function to get the form f(cdt)=0 Make sure your program seript (code) has these logical parts: input, definition, execution, output. - Include a complete plot of f(cd) for [0,1] interval (Note that: graphical method may help you to select the lower and the upper initial guesses for the Bisection method) - Display the estimated root, error and the number of iterations at the end (include these in your report together with your program script] Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started