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 /557/CH16/EX16.2 | |
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 '557/CH16/EX16.2')
-rwxr-xr-x | 557/CH16/EX16.2/2.sce | 14 |
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) :");
|