summaryrefslogtreecommitdiff
path: root/3407/CH9/EX9.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3407/CH9/EX9.1
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 '3407/CH9/EX9.1')
-rw-r--r--3407/CH9/EX9.1/Ex9_1.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3407/CH9/EX9.1/Ex9_1.sce b/3407/CH9/EX9.1/Ex9_1.sce
new file mode 100644
index 000000000..db5c51644
--- /dev/null
+++ b/3407/CH9/EX9.1/Ex9_1.sce
@@ -0,0 +1,16 @@
+clear;
+clc;
+funcprot(0);
+
+//given data
+Q = 2.272;//water volume flow rate in m^3/s
+l = 300;//length in m
+Hf = 20;//head loss in m
+f = 0.01;//friction factor
+g = 9.81;//acceleration due to gravity in m/s^2
+
+//Calculations
+d = (32*f*l*((Q/%pi)^2)/(g*Hf))^(1/5);
+
+//Results
+printf('The diameter of the pipe = %.4f m',d);