summaryrefslogtreecommitdiff
path: root/2132/CH7/EX7.16
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2132/CH7/EX7.16
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 '2132/CH7/EX7.16')
-rwxr-xr-x2132/CH7/EX7.16/Example7_16.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2132/CH7/EX7.16/Example7_16.sce b/2132/CH7/EX7.16/Example7_16.sce
new file mode 100755
index 000000000..9a9c98142
--- /dev/null
+++ b/2132/CH7/EX7.16/Example7_16.sce
@@ -0,0 +1,16 @@
+////Example 7.16
+clc;
+clear;
+close;
+format('v',6);
+//Given data :
+g=9.81;//gravity constant
+D=150/1000;//meter
+l=70;//meter
+H=2.6;//meter(head of water)
+f=0.01;//coeff. of friction
+//Applyong Bernoullis theorem
+v=sqrt(H*(2/g*(1+0.5+4*f*l/D))/4);//m/s
+Q=%pi*D^2/4*v;//m^3/sec
+Q=Q*1000;//litres/sec
+disp(Q,"Discharge through the pipe(litres/sec)");