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.3/example5_3.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 1379/CH5/EX5.1.3/example5_3.sce (limited to '1379/CH5/EX5.1.3') diff --git a/1379/CH5/EX5.1.3/example5_3.sce b/1379/CH5/EX5.1.3/example5_3.sce new file mode 100755 index 000000000..04660eca2 --- /dev/null +++ b/1379/CH5/EX5.1.3/example5_3.sce @@ -0,0 +1,16 @@ + + +//exapple 5.3 +clc; funcprot(0); +// Initialization of Variable +n=0.011; +h=0.12; +Q=25/10000; +//calculation +deff('y=f(x)','y=1/x^2-1'); +x=fsolve(0.1,f); +theta=2*atan(x); +A=h*2*h/tan(theta/2)/2; +P=2*h*sqrt(2); +s=Q^2*n^2*P^(4/3)/A^(10/3); +disp(s,"the slope of channel in (radians):") -- cgit