summaryrefslogtreecommitdiff
path: root/858/CH2/EX2.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /858/CH2/EX2.6
downloadScilab-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')
-rwxr-xr-x858/CH2/EX2.6/example_6.sce21
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)