summaryrefslogtreecommitdiff
path: root/1571/CH3/EX3.18/Chapter3_Example18.sce
blob: 7a64fc4f5d9e1b79fef9b872be2c0f12bdff68ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)