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.6/7_6.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 '1703/CH7/EX7.6/7_6.sce')
-rwxr-xr-x | 1703/CH7/EX7.6/7_6.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/1703/CH7/EX7.6/7_6.sce b/1703/CH7/EX7.6/7_6.sce new file mode 100755 index 000000000..f11dc3ceb --- /dev/null +++ b/1703/CH7/EX7.6/7_6.sce @@ -0,0 +1,22 @@ +clear
+clc
+//initialisation of variables
+l= 8 //ft
+b= 6 //ft
+h= 10 //ft
+r= 3
+Cd= 0.6
+A1= 36 //ft^2
+A2= 12 //ft^2
+l1= 6 //ft
+h1= 1 //ft
+d= 2 //in
+g=32.2 //ft/s^2
+//CALCULATIONS
+function [y]=fun(H)
+ y=H^-0.5/(Cd*(%pi*(d/12)^2/4)*sqrt(2*g)*((1/A1)+(1/A2)))
+endfunction
+vec2=intg(0,(b-h1),fun)
+T= vec2
+//RESULTS
+printf ('time for the levels to become equal = %.f sec',T)
|