summaryrefslogtreecommitdiff
path: root/2345/CH2/EX2.14/Ex2_14.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2345/CH2/EX2.14/Ex2_14.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2345/CH2/EX2.14/Ex2_14.sce')
-rwxr-xr-x2345/CH2/EX2.14/Ex2_14.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2345/CH2/EX2.14/Ex2_14.sce b/2345/CH2/EX2.14/Ex2_14.sce
new file mode 100755
index 000000000..02826e042
--- /dev/null
+++ b/2345/CH2/EX2.14/Ex2_14.sce
@@ -0,0 +1,16 @@
+//Finding temperature
+//Example 2.14(pg. 27)
+clc
+clear
+V15=250,Vt=250//voltage in volts
+I15=5,It=4//current in amperes
+T=15//temp in degree C
+R15=V15/I15//resistance in ohms at 15 degreeC
+printf('Resistance at 15 degree C is %3.1f ohms \n',R15)
+Rt=Vt/It//resistance at t degreeC
+printf('Resistance at t degree C is %3.1f ohms \n',Rt)
+k0=0.0038
+R0=R15/[1+(k0*T)]
+printf('Resistance at 0 degree C is %3.2f ohms \n',R0)
+t=[(Rt/R0)-1]/k0
+printf('Temperature t is %3.2f degree C',t)