summaryrefslogtreecommitdiff
path: root/1571/CH3/EX3.18
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.18
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.18')
-rwxr-xr-x1571/CH3/EX3.18/Chapter3_Example18.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1571/CH3/EX3.18/Chapter3_Example18.sce b/1571/CH3/EX3.18/Chapter3_Example18.sce
new file mode 100755
index 000000000..7a64fc4f5
--- /dev/null
+++ b/1571/CH3/EX3.18/Chapter3_Example18.sce
@@ -0,0 +1,17 @@
+clc
+clear
+
+//INPUT DATA
+v=1000;//volume of hydrogen in ml
+t=273;//tempature of hydrogen in kelvin
+p=760;//pressure of hydrogen in mm of hg
+w=0.0896;//weigh of hydrogen in gm
+cp=3.409;//specific heat of hydogen in kj/kg-K
+cv=2.411;//specific heat of hydrogen in kj/kg-K
+g=981;//accelaration due to gravity in cm/sec^2
+a=13.6;//density of mercury in gm/cm^2
+
+//CALCULATIONS
+J=(p*v*g*a)/(w*t*(cp-cv));//mechanical equivalent of heat in ergs/cals
+//OUTPUT
+printf('mechanical equivalent of heat is %3.2f ergs/calorie',J)