Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

11:14 PM Homework9v2.pdf bb-csuohio.blackboard.com Problem 1 x3- P = O gives the fifth root of the number P. A The solution of the nonlinear equation

image text in transcribed
11:14 PM Homework9v2.pdf bb-csuohio.blackboard.com Problem 1 x3- P = O gives the fifth root of the number P. A The solution of the nonlinear equation numerical solution ofthis equation can be calculated with Newton's method. The solution process starts by choosing a value xl as a first estimate of the solution. Using this value, a second, more accurate solution x2 can he calculated with x1s -P 5x14 x2 = x1- This equation is then used for calculating a third, still more accurate solution 3, and so on. The general equation for calculating the value of the solution from the solution xi Write a script file that utilizes a for-oop or a while-Soop to cakulate the fifth root of 17000. The input argument (P) is the number whose fifth root is to be determined and the output argument is x. Use an initial guess xl P/2 for each number. 1. 2. Stop the looping when the relative estimated error is less than 0.00001. a. Error- (nevw valuc- previous valuc) previous value 3. Your program should also perform the following a. Uses the fprintf command to display the calculated value of the fifth root. i. The fifth root of 17000 is b. Print two labeled columns with the first column showing the iteration number and second column showing the calculated values X at each Reration. c. Create a 2xl subplot The first plot shows the calculated values on the y-axis and the corresponding iteration number on the x-axis and the second subplot shows the relative error values on the y-axis and the corresponding ineration number on the x-axis G

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

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

Will we be able to keep up with company growth?

Answered: 1 week ago