Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Print the screen shot of your MATLAB code with output. Printout must be legible. The first line of your code must be % your name.

image text in transcribed
Print the screen shot of your MATLAB code with output. Printout must be legible. The first line of your code must be % your name. You must show your NAU user narne in the "Editor" header. Use NAU computers (possibly the NAU Remote Desktop). Problem. Use the following pseudocode for the Nevton-Raphson Method and write a MATLAB code to approximate the cube root a of a given number a with accuracy roughly within 10-8 using zo = a/2. Use miaximum 1 commenting on them. 00 iterations. Explain steps by Use f(z) = r"-a. Choose a 2 + w where w is the last digit of your NAU user name. Algorithm Newton-Raphson-Iteration Input: f(z)-r'-a, zo = a/2, tolerance 10-8, maximinn number of iterations 100 Output: an approximation of a within 10-8 or a message of failure for i 1 to 100 if Ir - zold] 10- % checking required accuracy % done % leave for environment FoundSolution= true; break end if % update told for the next iteration end for if FoundSolution else end if print z, 'The nurnber of iteration=,, 1 print "The required accuracy is not reached in 100 iterations Recommended commands: (See Matlab 0) . To show all digits in output, start your code with the command . For f', define the function df (x) 3r2 by using the command format long df = a(z) 3 * r."2

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

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

More Books

Students also viewed these Databases questions

Question

=+what information would you need about the compact disc industry?

Answered: 1 week ago