summaryrefslogtreecommitdiff
path: root/575/CH3/EX3.3.3/3_3_3.sce
blob: 1c94c037a0e15cb1118214821df97040dfba297d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
pathname=get_absolute_file_path('3_3_3.sce')
filename=pathname+filesep()+'333.sci'
exec(filename)
molO2=massO2/MO2
molCO=massCO/MCO
molCO2=massCO2/MCO2
molN2=massN2/MN2
TotalMol=molO2+molCO+molCO2+molN2
printf(" \n molefraction of O2=%f",molO2/TotalMol)
printf(" \n molefraction of CO=%f",molCO/TotalMol)
printf(" \n molefraction of CO2=%f",molCO2/TotalMol)
printf(" \n molefraction of N2=%f",molN2/TotalMol)