summaryrefslogtreecommitdiff
path: root/1808/CH2/EX2.25/Chapter2_Example25.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1808/CH2/EX2.25/Chapter2_Example25.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '1808/CH2/EX2.25/Chapter2_Example25.sce')
-rw-r--r--1808/CH2/EX2.25/Chapter2_Example25.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/1808/CH2/EX2.25/Chapter2_Example25.sce b/1808/CH2/EX2.25/Chapter2_Example25.sce
new file mode 100644
index 000000000..1ed69e3fe
--- /dev/null
+++ b/1808/CH2/EX2.25/Chapter2_Example25.sce
@@ -0,0 +1,17 @@
+clc
+clear
+//INPUT DATA
+//0.506 H2 +0.1 CO+0.26 CH4 +0.04 C4H8 +0.004 O2 +0.03 CO2 +0.06N2 +0.21*8 02+0.79 8 N2= a CO2 +b H20 +c O2 +d N2 ;//COMBUSTION EQUATION
+a=0.55;//CARBON BALANCE
+b=1.186;//HYDROGEN BALANCE
+c=0.621;//OXYGEN BALANCE
+d=6.38;//NITROGEN BALANCE
+
+//CALCULATIONS
+n=a+c+d;//Total moles of dry products
+nCO2=(a/n)*100;//Analysis of products by volume
+nO2=(c/n)*100;//Analysis of products by volume
+nN2=(d/n)*100;//Analysis of products by volume
+
+//OUTPUT
+printf('Analysis of products by volume \n(i)CO2 %3.2f \n (ii)O2 %3.2f \n (iii)N2 %3.2f ',nCO2,nO2,nN2)