summaryrefslogtreecommitdiff
path: root/1472/CH10/EX10.5/10_5.sce
blob: e0021570e46fd76b695d6ce68720f6dd0a301f36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
//initialization of variables
x=0.97
P=100 //psia
//calculations
disp("From table 2,")
hf=298.4
hfg=888.8
hx=hf+x*hfg
hg=1187.2
hx2=hg-(1-x)*hfg
//results
printf("Accurate Enthalpy = %.1f B/lb",hx2)
printf("\n Enthalpy = %.1f B/lb", hg)