summaryrefslogtreecommitdiff
path: root/1571/CH3/EX3.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1571/CH3/EX3.5
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 '1571/CH3/EX3.5')
-rwxr-xr-x1571/CH3/EX3.5/Chapter3_Example5.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1571/CH3/EX3.5/Chapter3_Example5.sce b/1571/CH3/EX3.5/Chapter3_Example5.sce
new file mode 100755
index 000000000..313acafd0
--- /dev/null
+++ b/1571/CH3/EX3.5/Chapter3_Example5.sce
@@ -0,0 +1,17 @@
+clc
+clear
+
+//INPUT DATA
+h=150;//height froom which ball fallen in ft
+cp=0.03;//specific heat of lead in kj/kg-K
+J=778;//mechanical equivalent of heat in ft lb/B.Th.U
+
+//CALCULATIONS
+//assume m be the mass of the lead
+//work done in falling through 160 feet in ft-lb w=160*m
+//heat absorbed by the ball in B.Th.U h=m*cp*T
+//work done in falling is equal to heat absorbed by the ball
+T=160/(J*cp)*(5/9);//the raise in temperature in T
+
+//OUTPUT
+mprintf('the raise in temperature is %3.1f deg.C',T)