Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with this matlab about the newton method. My TA told us to use the 'for' loop for the first question and the

I need help with this matlab about the newton method. My TA told us to use the 'for' loop for the first question and the 'while' loop for the second and third questions. Here are some coding examples from lab:

For:

image text in transcribed

While:

image text in transcribed

Using the examples from class I am still unsure how to find the answers to the follwing three questions.

image text in transcribed

Any help would be greatly appreciated. Also, screenshots from MATLAB would be helpful.

clear from [0,1] % find the x-intercept berusea f(x) and f (x)-(cos (3*pi*x/2),"2"X x-axes hold orn grid on % Newton Method formula newton (x)-x-f (x) / (diff(f (xLx)) % create an array which store the index % create an array to store the answer answer(1)-0.2 for n=2:19 step 2&3 answer (n)-newton (answer (n-1) ) count (n)-n end count' Wpalan swer)

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 Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions