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 /2504/CH6/EX6.10 | |
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 '2504/CH6/EX6.10')
-rwxr-xr-x | 2504/CH6/EX6.10/6_10.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/2504/CH6/EX6.10/6_10.sce b/2504/CH6/EX6.10/6_10.sce new file mode 100755 index 000000000..cd52e32a9 --- /dev/null +++ b/2504/CH6/EX6.10/6_10.sce @@ -0,0 +1,18 @@ +clc
+//initialisation of variables
+clear
+Q= 400 //ft^3/sec
+b1= 25 //ft
+b2= 20 //ft
+h1= 6 //ft
+z1= 2.5 //ft
+z2= 3.3 //ft
+g= 32.2 //ft/sec^2
+//CALCULATIONS
+hc1= (Q^2/(g*b1^2))^(1/3)
+hc2= (Q^2/(g*b2^2))^(1/3)
+r= (hc1/hc2)*((h1/hc1)+0.5*(hc1/h1)^2)+((z1-z2)/hc2)
+//RESULTS
+printf ('hc1 = %.3f ft',hc1)
+printf ('\n hc2 = %.3f ft',hc2)
+printf ('\n Ratio = %.3f ',r)
|