summaryrefslogtreecommitdiff
path: root/1571/CH3/EX3.9
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.9
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.9')
-rwxr-xr-x1571/CH3/EX3.9/Chapter3_Example9.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1571/CH3/EX3.9/Chapter3_Example9.sce b/1571/CH3/EX3.9/Chapter3_Example9.sce
new file mode 100755
index 000000000..fb103d9d7
--- /dev/null
+++ b/1571/CH3/EX3.9/Chapter3_Example9.sce
@@ -0,0 +1,17 @@
+clc
+clear
+
+//INPUT DATA
+h=10000;//vertical height of water fall in cm
+v=5;//volume disharged per sec in litres
+J=4.18;//joule's constant in j/cal
+g=981;//accelaration due to gravity in cm/sec^2
+
+//CALCULATIONS
+m=v*1000;//mass of water disharged per sec in gm
+w=m*h*g;//work done in falling through 100m in erg
+H=w/(J*10^7);//quantity of heat produced in cal
+T=H/m;//rise in temperature in deg.C
+
+//OUTPUT
+mprintf('the quantity of heat produced is %3f cal \n the rise in temperature is %3.2f deg.C',H,T)