summaryrefslogtreecommitdiff
path: root/632/CH7/EX7.3/example7_3.sce
blob: 131fde85ff2c84a6b1b243174c95fb10e3bb648e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//clc()
xa = 0.25;
xb = 0.30;
xc = 1 - xa - xb;
Ptotal = 200;//kPa
Pcs = 50;//kPa(Vapour pressure of c)
Pc = xc * Pcs;//(partial pressure of c)
yc = Pc / Ptotal;
yb = 0.5;
ya = 1 - yb - yc;
per1 = ya * 100;
disp("%",per1,"Percentage of A in vapour = ")