summaryrefslogtreecommitdiff
path: root/1703/CH7/EX7.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1703/CH7/EX7.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 '1703/CH7/EX7.3')
-rwxr-xr-x1703/CH7/EX7.3/7_3.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/1703/CH7/EX7.3/7_3.sce b/1703/CH7/EX7.3/7_3.sce
new file mode 100755
index 000000000..90ee3a4ad
--- /dev/null
+++ b/1703/CH7/EX7.3/7_3.sce
@@ -0,0 +1,16 @@
+
+clc
+//initialisation of variables
+d= 10 //in
+l= 15 //ft
+di= 3 //in
+Cd= 0.62
+g=32.2
+//CALCULATIONS
+function [y]=fun(H)
+ y=-l*2*sqrt((d/2)^2-((d/2)-H)^2)/(Cd*(%pi*(di/12)^2/4)*H^0.5*sqrt(2*g))
+endfunction
+vec2=intg(d/2,0,fun)
+T= vec2
+//RESULTS
+printf ('time for the channel to fall = %.f sec',T)