summaryrefslogtreecommitdiff
path: root/2168/CH15/EX15.3/Chapter15_example3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2168/CH15/EX15.3/Chapter15_example3.sce
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 '2168/CH15/EX15.3/Chapter15_example3.sce')
-rwxr-xr-x2168/CH15/EX15.3/Chapter15_example3.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2168/CH15/EX15.3/Chapter15_example3.sce b/2168/CH15/EX15.3/Chapter15_example3.sce
new file mode 100755
index 000000000..e22c7a16b
--- /dev/null
+++ b/2168/CH15/EX15.3/Chapter15_example3.sce
@@ -0,0 +1,17 @@
+clc
+clear
+//Input data
+n=4//Number of cylinders
+p=450//Brake Horse power in B.H.P
+N=200//Speed in r.p.m
+f=0.2//Fuel rate in kg per horse power hour
+g=0.9//Specific gravity of fuel
+
+//Output
+Fc=(p*f)//Fuel consumption per hour in kg/hr
+Fcy=(Fc/n)//Fuel consumption per cylinder in kg/hr
+Fcyc=(Fcy/(60*(N/2)))//Fuel consumption per cycle in kg
+q=(Fcyc/(g*1000))*10^6//Quantity of fuel injected per cylinder per cycle in c.c
+
+//Output
+printf('The quantity of fuel to be injected per cycle per cylinder is %3.3f c.c',q)