From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 49/CH8/EX8.4/ex4.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 49/CH8/EX8.4/ex4.sce (limited to '49/CH8/EX8.4/ex4.sce') diff --git a/49/CH8/EX8.4/ex4.sce b/49/CH8/EX8.4/ex4.sce new file mode 100755 index 000000000..eb0d4561e --- /dev/null +++ b/49/CH8/EX8.4/ex4.sce @@ -0,0 +1,24 @@ +//CHAPTER 8 _ TEMPERATURE MEASUREMENT +//Caption : THERMISTOR +// Example 4 // Page 521 +To= 293 //('Enter the temperature in K=:') +Ro=1000 //('Entering the corresponding resistance in ohm=:') +B=3450 // (' Entering the val)ue of constant=:') +Rt=2500 //(' Entering the resistance at which temperature has to be calculated=:') +T=1/((1/To)+(1/B)*log(Rt/Ro)); +disp("Temperature is given by:") +disp("T=1/((1/To)+(1/B)*log(Rt/Ro));") +printf('The temperature corresponding to resistance of %d ohm is %1.3f K \n ',Rt,T) +Wrt=5 //('Entering the error in Rt resistance measurement=:' ) +Wro=2 //('Entering the error in Ro temperature measurement=:') +// Let dT/dRt be represented by DRt and dT/dRo by DRo +DRt=-T^2/(B*Rt) ; +DRo=-T^2/(B*Ro); +disp ("Error in temperature measurement is given by:") +disp("Wt=sqrt((DRt*Wrt)^2+(DRo*Wro)^2);") +Wt=sqrt((DRt*Wrt)^2+(DRo*Wro)^2); +printf('Error in the required temperature measurement is %1.4f K \n',Wt) +printf('So the required temperature is %d+_%1.4f K \n',T,Wt) + + + -- cgit