summaryrefslogtreecommitdiff
path: root/2510/CH9/EX9.2/Ex9_2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2510/CH9/EX9.2/Ex9_2.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 '2510/CH9/EX9.2/Ex9_2.sce')
-rwxr-xr-x2510/CH9/EX9.2/Ex9_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2510/CH9/EX9.2/Ex9_2.sce b/2510/CH9/EX9.2/Ex9_2.sce
new file mode 100755
index 000000000..77b5d1425
--- /dev/null
+++ b/2510/CH9/EX9.2/Ex9_2.sce
@@ -0,0 +1,14 @@
+//Variable declaration:
+//From example 9.1:
+R = 0.0398 //Theral resistance (°F.h/Btu)
+Btu = 3.412 //Btu/h in a watt
+C = 1.8 //Change in degree fahrenheit for a degree change in celsius
+K = 1 //Change in degree celsius for a unit change in Kelvin
+
+//Calculation:
+Rc = R*Btu/C //Thermal resistance in degree cesius per watt (°C/W)
+Rk = Rc/K //Thermal resistance in Kelvin per watt (K/W)
+
+//Result:
+printf("The thermal resistance in °C/W is : %.3f °C/W.",Rc)
+printf("The thermal resistance in K/W is : %.3f K/W.",Rk)