Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a program in MATLAB 5 (20 Points) Use the Newton-Raphson method to estimate the root after 10 iterations for the function: 9(x) = 3x3

image text in transcribed

write a program in MATLAB

5 (20 Points) Use the Newton-Raphson method to estimate the root after 10 iterations for the function: 9(x) = 3x3 - 2.5x - 15 Use an initial guess of x = 0.6. Save the answer from each iteration in a vector. You must use a loop and your single line calculation must be performed by accessing the proper element in the vector and assigning the result to the proper element in the same vector. For example, suppose you call the vector X Then the one line in the foo would be X(?) = X(?). You will need to determine what should replace the question mark and what should be inserted in the blank. So, before the first teration, you would have a vector X = [0], after the first iteration X = (x0 x1). and so forth. In addition, a Display the vector as a column vector using the disp command b. Calculate the exact real root using the roots function Display using an fprintf statement with 10 digits to the right of the decimal point c. Use an fprintf statement to display and answer the question: Why does the Newton-Raphson method initially overshoot the exact value and then increase or decrease) to converge to the exact value

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_2

Step: 3

blur-text-image_3

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

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions

Question

a. What is the holding companys beta?

Answered: 1 week ago