diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2168/CH15/EX15.1/Chapter15_example1.sce | |
download | Scilab-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.1/Chapter15_example1.sce')
-rwxr-xr-x | 2168/CH15/EX15.1/Chapter15_example1.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/2168/CH15/EX15.1/Chapter15_example1.sce b/2168/CH15/EX15.1/Chapter15_example1.sce new file mode 100755 index 000000000..f3d20efc8 --- /dev/null +++ b/2168/CH15/EX15.1/Chapter15_example1.sce @@ -0,0 +1,13 @@ +clc
+clear
+//Input data
+n=6//Number of cylinders
+p=720//Horse power in h.p
+N=180//Speed in r.p.m
+f=250//Fuel rate in gm per horse power hour
+
+//Calculations
+w=(((f/1000)*p)/((N/2)*60*n))*1000//Weight of fuel per cycle in gm/cycle
+
+//Outptut
+printf('The quantity of fuel to be injected per cylinder is %3.2f gm/cycle',w)
|