summaryrefslogtreecommitdiff
path: root/557/CH16/EX16.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /557/CH16/EX16.2
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 '557/CH16/EX16.2')
-rwxr-xr-x557/CH16/EX16.2/2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/557/CH16/EX16.2/2.sce b/557/CH16/EX16.2/2.sce
new file mode 100755
index 000000000..09820f38c
--- /dev/null
+++ b/557/CH16/EX16.2/2.sce
@@ -0,0 +1,14 @@
+clc; funcprot(0);//Example 16.2
+
+//Initializing the variables
+B = [1.4 0.9];
+D = [0.6 0.32];
+g = 9.81;
+h = 0.03;
+Z = 0.25;
+
+//Calculations
+Q1 = B(2)*D(2)*sqrt(2*g*h/(1-(B(2)*D(2)/B(1)*D(1))^2))
+E = D(1)-Z;
+Q2 = 1.705*B(2)*E^1.5;
+disp(Q2 , "Volume flow rate (m3/s) :");