summaryrefslogtreecommitdiff
path: root/2024/CH11/EX11.7/11_7.sce
blob: eec028509f43d76853db8936d5cca2a80a64fd05 (plain)
1
2
3
4
5
6
7
8
9
10
clc
//Initialization of variables
p=14.7 //psia
ps=0.363 //psia
n2=7.52 //moles
n1=1 //moles
//calculations
x= (n1+n2)*ps/p /(1-ps/p)
//results
printf("Final orsat composition is %d CO2 + %.2f H20 + %.2f N2",n1, x, n2)