summaryrefslogtreecommitdiff
path: root/1379/CH5/EX5.1.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1379/CH5/EX5.1.3
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 '1379/CH5/EX5.1.3')
-rwxr-xr-x1379/CH5/EX5.1.3/example5_3.sce16
1 files changed, 16 insertions, 0 deletions
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):")