summaryrefslogtreecommitdiff
path: root/3843/CH12/EX12.4/Ex12_4.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3843/CH12/EX12.4/Ex12_4.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 '3843/CH12/EX12.4/Ex12_4.sce')
-rw-r--r--3843/CH12/EX12.4/Ex12_4.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3843/CH12/EX12.4/Ex12_4.sce b/3843/CH12/EX12.4/Ex12_4.sce
new file mode 100644
index 000000000..6d69c4d4a
--- /dev/null
+++ b/3843/CH12/EX12.4/Ex12_4.sce
@@ -0,0 +1,21 @@
+// Example 12_4
+clc;funcprot(0);
+// Given data
+// The volumetric analysis of the products on dry basis
+CO_2=10.4// %
+CO=1.2;// %
+O_2=2.8;// %
+N_2=85.6;// %
+
+// Calculation
+// The chemical equation is C_aH_b+c(O_2+3.76N_2)-->10.4CO_2+1.2CO+2.8O_2+85.6N_2+dH_2O
+// Balancing each element,
+a=10.4+1.2;// (C)
+c=85.6/3.76;// (N)
+d=(2*c)-(20.8+1.2+5.6);// (O)
+b=2*d;// (H)
+printf("\nThe chemical formula for the fuel is C_%2.1fH_%2.1f",a,b);
+// The find the percent theoretical air from the actual chemical equation, C_11.6H_37.9+21.08(O_2+3.76N_2)-->11.6CO_2+18.95H_2O+79.26N_2
+c_act=21.08;
+P_ta=(c/c_act)*100;// The percent theoretical air in %
+printf("\nThe percent theoretical air=%3.1f percentage",P_ta);