Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hello, I am trying to use the newton raphson method to find the root for the provided equation and derivative of the equation. for some

hello, I am trying to use the newton raphson method to find the root for the provided equation and derivative of the equation. for some reason I am getting an error. please help. thank you. image text in transcribed
% The Newton Raphson Method f = @(x) 1/sqrt(x)+2*log10((0.0002/(3.7*0.3)) +2.51/(10^5*sqrt(x))); fprime = @(x) ((-0.0000251/sqrt(x))-0.00020)/(2*x^(3/2)*(0.0000251/sqrt(x)+0.00018)); X = ; Initial Guess i = 0; Starting the number of iterations ei = 100; Begins while loop, ei=Ixi-xi-1| le - 12 - while (ei > le-5) xnew = X - (f/fprime); ei = abs(x - xnew); x = xnew; Updates x value i = i + 1; Updates iteration end 21- fprintf('The Root is : %f ',x) fprintf('No. of Iterations : %d ', i) fprintf('ei value is: %d ',ei) 23 - Command Window 1 -1 , 5 end fprintf('The Root is : %f ',x) fprintf('No. of Iterations : %d ', i) fprintf('ei value is: %d ',ei) Undefined operator '' for input arguments of type 'function_handle

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

Professional Microsoft SQL Server 2014 Administration

Authors: Adam Jorgensen, Bradley Ball

1st Edition

111885926X, 9781118859261

More Books

Students also viewed these Databases questions

Question

Th ey would have been rude to me.

Answered: 1 week ago

Question

4. I can tell when team members dont mean what they say.

Answered: 1 week ago