summaryrefslogtreecommitdiff
path: root/1100/CH5/EX5.1/5_1.sce
blob: 14dc2f4461173d1099c06c14419376f7558c373d (plain)
1
2
3
4
5
6
7
8
9
10
clc
//initialisation of variables
p= 15 //psia
V2= 5 //cu
V1= 10 //cu
E= 34.7 //Btu
//CALCULATIONS
dE= -E-((p*(V2-V1)*144)/(778))
//RESULTS
printf ('Change in internal enenrgy of the gas= %.2f Btu',dE)