Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In MATLAB code please 2.(20 pts) Use (i) besection method, (i) Newton's method, and (ii) secant method, to find ALL the solutions of the following

In MATLAB code please

image text in transcribed

2.(20 pts) Use (i) besection method, (i) Newton's method, and (ii) secant method, to find ALL the solutions of the following equation: 3 f(x) = sin(x)-x+ Requirements: (1) Plot a curve for function f(a) for suitable range of z containing all the solutions; (ii) for each root, use matlab fzero function to find the approximate solution a, and use it as the exact solution for calculating the error in each iteration. In each iteration, print out n, zm, f(xn), Itn- r: (iii) For each root, using the error Ien -. to determing an order of convergence approximately for each solution method, compare and discuss the theoretical convergence order and the actual order you calculated

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Genetic Databases

Authors: Martin J. Bishop

1st Edition

0121016250, 978-0121016258

More Books

Students also viewed these Databases questions

Question

D How will your group react to this revelation?

Answered: 1 week ago