diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /858/CH2/EX2.6/example_6.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '858/CH2/EX2.6/example_6.sce')
-rwxr-xr-x | 858/CH2/EX2.6/example_6.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/858/CH2/EX2.6/example_6.sce b/858/CH2/EX2.6/example_6.sce new file mode 100755 index 000000000..a9d65e5dd --- /dev/null +++ b/858/CH2/EX2.6/example_6.sce @@ -0,0 +1,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)
|