Question: please solve it with matlab ! question 1 already solve .. answer for problem 1 MATLAB Code: clc; clear all; close all; function Xs=Newtonsol(Fun,Funder,Xest) imaximum=input('Value

please solve it with matlab !

please solve it with matlab ! question 1 already solve .. answer

question 1 already solve ..

for problem 1 MATLAB Code: clc; clear all; close all; function Xs=Newtonsol(Fun,Funder,Xest)

answer for problem 1

imaximum=input('Value of maximum iterations='); error=input('Value of relative errorr='); for i=1:imaximum Xi=Xest-Fun(Xest)/Funder(Xest); if

abs((Xi-Xest)/Xest) Xs=Xi; break end Xest=Xi; end if i==imaximum fprintf('solution was not obtained',imaximum)

MATLAB Code: clc; clear all; close all; function Xs=Newtonsol(Fun,Funder,Xest) imaximum=input('Value of maximum iterations='); error=input('Value of relative errorr='); for i=1:imaximum Xi=Xest-Fun(Xest)/Funder(Xest); if abs((Xi-Xest)/Xest) Xs=Xi; break end Xest=Xi; end if i==imaximum fprintf('solution was not obtained',imaximum) Xs=('No Solution'); end end function y=Functionexample(x) y=x-sin(x); end Newtonsol(@Functionexample(2),32.4,1)

2. The operation of Resistance Temperature Detector (RTD) is based on the fact that the electrical resistance of the detector material changes with temperature. For Nickel which is sometimes used in such detectors, the resistance, RT, at temperature T (oC) as a function of temperature is given by: RT -Ro(1+AT+BT2+CT4+DT60 Where Ro is the resistance of the detector at 0C and A 5.485*103, B 6.65 106 C 2.805 10 11 and D 2* 10 17 are constants. Consider a detector with Ro -10000 and determine the temperature when its resistance is 300 Q. Use the user-defined function NewtonSol which you wrote in Problem 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!