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 --- 1379/CH5/EX5.1.7/example5_7.sce | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 1379/CH5/EX5.1.7/example5_7.sce (limited to '1379/CH5/EX5.1.7/example5_7.sce') diff --git a/1379/CH5/EX5.1.7/example5_7.sce b/1379/CH5/EX5.1.7/example5_7.sce new file mode 100755 index 000000000..507f6308d --- /dev/null +++ b/1379/CH5/EX5.1.7/example5_7.sce @@ -0,0 +1,19 @@ + + +//exapple 5.7 +clc; funcprot(0); +// Initialization of Variable +G=338;//mass flow rate +rho=998; +q=G/rho; +E=0.48; +n=0.015; +g=9.81; +B=0.4; +y=poly([5.85/1000 0 -E 1],'x','coeff'); +x=roots(y); +disp(x(1),x(2),"alternate depths (m):"); +s=(G*n/rho/x(2)/(B*x(2)/(B+2*x(2)))^(2/3))^2 +disp(s,"slode when depth is 12.9cm"); +s=(G*n/rho/x(1)/(B*x(1)/(B+2*x(1)))^(2/3))^2 +disp(s,"slode when depth is 45.1cm"); -- cgit