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 /1379/CH5/EX5.1.7/example5_7.sce | |
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 '1379/CH5/EX5.1.7/example5_7.sce')
-rwxr-xr-x | 1379/CH5/EX5.1.7/example5_7.sce | 19 |
1 files changed, 19 insertions, 0 deletions
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");
|