summaryrefslogtreecommitdiff
path: root/2789/CH9/EX9.16/Ex9_16.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2789/CH9/EX9.16/Ex9_16.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 '2789/CH9/EX9.16/Ex9_16.sce')
-rwxr-xr-x2789/CH9/EX9.16/Ex9_16.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2789/CH9/EX9.16/Ex9_16.sce b/2789/CH9/EX9.16/Ex9_16.sce
new file mode 100755
index 000000000..18e9d2f76
--- /dev/null
+++ b/2789/CH9/EX9.16/Ex9_16.sce
@@ -0,0 +1,19 @@
+clear;
+clc;
+
+//page no. 327
+
+Q = 5;//cfs
+d = 12;//in
+l = 5000;//ft
+h = 70;//ft
+L = 2000;//ft
+K = (h/Q^1.85);
+a = (L/l)*K;
+b = ((l-L)/l)*K;
+Q_ = (h/((b+a*(0.5^(1.85)))))^(1/1.85);
+Q_A = Q_/2;
+Q_B = Q_/2;
+del = Q_-Q;//gain capcaity
+percent = (del/Q)*100;//gain percentage
+printf('The gain of capacity by looping the pipe is %.1f cfs or %d percentage',del,percent);