summaryrefslogtreecommitdiff
path: root/1922/CH2/EX2.2/2_2.sce
blob: 1765b8c1af556b61b6941ce6acb52e34191fecaf (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
clear
//Initialization of variables
Vb=30 //m^3/kmol
P=1.013*10^5 //Pa
R=8.3143*10^3 //J/kmol K
T=373.1 //K
//calculations
Z=P*Vb/(R*T)
//results
printf("Compressibility factor = %.3f",Z)