summaryrefslogtreecommitdiff
path: root/858/CH2/EX2.6/example_6.sce
blob: a9d65e5dd40fe11f6e310d745f8d53e3f2c0ba61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
clc
clear 
printf("example 2.6 page number 73\n\n")
//to find the volume of air

volume_H2=0.5    //in m3
volume_CH4=0.35  //in m3
volume_CO=0.08   //in m3
volume_C2H4=0.02 //in m3
volume_oxygen=0.21  //in m3 in air

//required oxygen for various gases
H2=0.5*volume_H2;
CH4=2*volume_CH4;
CO=0.5*volume_CO;
C2H4=3*volume_C2H4;

total_O2=H2+CH4+CO+C2H4;
oxygen_required=total_O2/volume_oxygen;

printf("amount of oxygen required = %f cubic meter",oxygen_required)