Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using MATLAB Develop a computer program that uses the Newton - Raphson method to calculate the roots of a given function. Then use the program

Using MATLAB Develop a computer program that uses the Newton-Raphson method to calculate the roots of a given function. Then use the program to calculate the positive root of each of the following functions.a. f(x)=0.51 x sin(x)b. f(x)= x101For each case, obtain and present the following results.1. Plot of the function over an appropriate range to show the root.2. Tabulate the results for the first 50 iterations showing i (iteration no.) x(i)% relative error.3. Computer-generated plot of the root estimate as a function of iteration number.4. Computer-generated plot of the % relative error as a function of iteration number.5. Explain the reason for the dramatic difference in convergence rate for the two cases.6. Program listing (so the professor or assistant can duplicate results-if needed).For case (a) use an initial guess of x=1.5 and for Case (b) use an initial guess of x=0.5.

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

Database Systems For Advanced Applications 9th International Conference Dasfaa 2004 Jeju Island Korea March 2004 Proceedings Lncs 2973

Authors: YoonJoon Lee ,Jianzhong Li ,Kyu-Young Whang

2004th Edition

3540210474, 978-3540210474

More Books

Students also viewed these Databases questions