summaryrefslogtreecommitdiff
path: root/1922/CH9/EX9.9/9_9.sce
blob: dae50b85e8ddfdee7418e5120bb8459879080acc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
clc
clear
//Initialization of variables
y=0.18
z=0.6
//calculations
mole=[1-y-z 5-y-2*z y 3*y+4*z z]
s=sum( mole)
molef=mole/s
//results
disp("Product composition moles  = ")
format('v',6);mole
disp(mole)
disp("Mole fraction = ")
format('v',6);molef
disp(molef)