summaryrefslogtreecommitdiff
path: root/1466/CH5/EX5.7/5_7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1466/CH5/EX5.7/5_7.sce
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 '1466/CH5/EX5.7/5_7.sce')
-rwxr-xr-x1466/CH5/EX5.7/5_7.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1466/CH5/EX5.7/5_7.sce b/1466/CH5/EX5.7/5_7.sce
new file mode 100755
index 000000000..ea6bc18ee
--- /dev/null
+++ b/1466/CH5/EX5.7/5_7.sce
@@ -0,0 +1,16 @@
+
+clc
+//initialisation of variables
+L= 10 //ft
+h= 2 //ft
+w= 20//ft
+d= 3//ft
+n= 2
+g= 32.2 //ft/sec^2
+//CALCULATIONS
+Q= 3.33*(L-0.*h)*h^1.5
+v1= Q/(w*d)
+H1= h+v1^2/(2*g)
+Q= 3.33*(L-0.1*n*H1)*(H1^1.5-(v1^2/(2*g))^1.5)
+//RESULTS
+printf (' Discharge over a weir = %.f ft^3/sec',Q)