Question: Write a program that uses the bisection method to find the root of a given function on a given interval, and apply this program to
Write a program that uses the bisection method to find the root of a given function on a given interval, and apply this program to find the roots of the functions below on the indicated intervals. Incorporate into your program the error estimate formula derived in class, to determine a priori the number of steps necessary for the root to be accurate to within a given absolute error tolerance eg choose Remember that the error estimate is conservative and might choose little more iterations.
fxxsinxabpi fxxexab
Note: use Matlabs sign function to determine if a real number is positive or negative. Make sure your code checks if you got lucky by testing the endpoints.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
