summaryrefslogtreecommitdiff
path: root/2519/CH16/EX16.4/Ex16_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '2519/CH16/EX16.4/Ex16_4.sce')
-rwxr-xr-x2519/CH16/EX16.4/Ex16_4.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2519/CH16/EX16.4/Ex16_4.sce b/2519/CH16/EX16.4/Ex16_4.sce
new file mode 100755
index 000000000..05da92368
--- /dev/null
+++ b/2519/CH16/EX16.4/Ex16_4.sce
@@ -0,0 +1,16 @@
+clc
+clear
+//Initialization of variables
+N2=78.1
+M=29
+co2=8.7
+co=8.9
+x4=0.3
+x5=3.7
+x6=14.7
+//calculations
+O2=N2/3.76
+Z=(co2+co+x4)/8
+AF=(O2+N2)*M/(Z*113)
+//results
+printf("Air fuel ratio = %.1f lbm air/lbm fuel",AF)