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 /1703/CH7/EX7.5 | |
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 '1703/CH7/EX7.5')
-rwxr-xr-x | 1703/CH7/EX7.5/7_5.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/1703/CH7/EX7.5/7_5.sce b/1703/CH7/EX7.5/7_5.sce new file mode 100755 index 000000000..9190a6ca6 --- /dev/null +++ b/1703/CH7/EX7.5/7_5.sce @@ -0,0 +1,20 @@ +clc
+//initialisation of variables
+clear
+A= 1/16 //mile^2
+d= 2 //ft
+h= 18 //ft
+h1= 5 //ft
+f= 0.006
+l= 200 //ft
+h2= 10 //ft
+g= 32.2 //ft/sec^2
+//CALCULATIONS
+X= sqrt(1/((1.5+(4*f*l/d))/(2*g)))
+function [y]=fun(H)
+ y=A*5280^2*H^-0.5/(%pi*d^2*X/4)
+endfunction
+vec2=intg(h-h1,h,fun)
+T= vec2
+//RESULTS
+printf ('time for the channel to fall = %.f sec',T)
|