Problem on bisection method in MATLAB
8 views (last 30 days)
Show older comments
raj k on 20 Oct 2020
Commented: shubh aggarwal on 28 Oct 2020
Write a program in MATLAB which will give as output all the real solutions of the equation sin(x)=x/10. The solutions should be accurate up to the second decimal place and should be obtained using the bisection method. Note that the program should be written efficiently i.e, a loop should be introduced so that the bisection method is applied repeatedly to obtain all the solutions (starting values should not be entered manually for each root). The program should display all the solutions as output.
Study the code in the following FEX packages, and then you can write your own code for the homework
Andy on 22 Oct 2020
Valid starting points for a and b are the turning points of the function sin(x)-(x/10)=0. Determine the turning points then use tp(1) and tp(2) as the first a and b, then tp(2) tp(3)
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!