Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am trying to use matlab to use the Newton-Rapson method. A function is given in terms of x. The derivative of the function is

I am trying to use matlab to use the Newton-Rapson method. A function is given in terms of x. The derivative of the function is then used in the formula as well. i am getting an error of Not a number. please help. thank you.
image text in transcribed
CIV312_ConcretebeamSuiver CalculateEc. mx CalculatePhi. m X %The Newton Raphson Method 4- f = 1/sqrt(x)+2*log10((0.0002/(3.7*0.3))+2.51/(10^5*sqrt(x))); 6 - fprime = ((-0.0000251/sqrt(x))-0.00020)/(2*x^(3/2)*(0.0000251/sort 8 - 9 - x = 0; i = 0; ei = 100; Initial Guess Starting the number of iterations Begins while loop, ei=xi-xi-11 10 - 12 - while (ei > le-5) xnew = x - (f/fprime); ei = abs(x - xnew); x = xnew; Updates x value i = i + 1; %Updates iteration end fprintf('The Root is : %f ',x) fprintf('No. of Iterations : %d ', i) fprintf('ei value is: %d ',ei) Command Window end fprintf('The Root is : %f ',x) fprintf('No. of Iterations : %d ', i) fprintf('ei value is: %d ',ei) The Root is : NaN No. of Iterations : 1 ei value is: NaN

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

Beginning C# 2005 Databases

Authors: Karli Watson

1st Edition

0470044063, 978-0470044063

More Books

Students also viewed these Databases questions

Question

Nonverbal Communication Codes

Answered: 1 week ago

Question

6. Vanguard

Answered: 1 week ago

Question

1. PricewaterhouseCoopers

Answered: 1 week ago