diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /49/CH8/EX8.4/ex4.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '49/CH8/EX8.4/ex4.sce')
-rwxr-xr-x | 49/CH8/EX8.4/ex4.sce | 24 |
1 files changed, 24 insertions, 0 deletions
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)
+
+
+
|