summaryrefslogtreecommitdiff
path: root/2837/CH13/EX13.7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2837/CH13/EX13.7
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 '2837/CH13/EX13.7')
-rwxr-xr-x2837/CH13/EX13.7/Ex13_7.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/2837/CH13/EX13.7/Ex13_7.sce b/2837/CH13/EX13.7/Ex13_7.sce
new file mode 100755
index 000000000..877c184f6
--- /dev/null
+++ b/2837/CH13/EX13.7/Ex13_7.sce
@@ -0,0 +1,14 @@
+clc
+clear
+//Initialization of variables
+x=[0.74 0.06 0.01] //mole fraction of C, H and S respectively
+y=[8/3 8 1] //Pounds O2 per pound substance of C,H and S respectively
+oxy=0.08 //Oxygen in coal
+z=0.232 //mass of coal
+//calculations
+pou=x.*y
+tot=sum(pou)
+oxy2=tot-oxy
+air=oxy2/z
+//results
+printf("Theoretical air fuel ratio = %.2f lb of air per pound of coal",air)