From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 557/CH16/EX16.2/2.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 557/CH16/EX16.2/2.sce (limited to '557/CH16/EX16.2/2.sce') 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) :"); -- cgit