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 e.g. choose 106. Remember that the error estimate is conservative and might choose little more iterations.
f(x)=x2sinx,[a,b]=[0,\pi ] f(x)=12xex/2,[a,b]=[0,2]
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 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!