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.2 | |
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.2')
-rwxr-xr-x | 1703/CH7/EX7.2/7_2.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/1703/CH7/EX7.2/7_2.sce b/1703/CH7/EX7.2/7_2.sce new file mode 100755 index 000000000..65f2d8c5a --- /dev/null +++ b/1703/CH7/EX7.2/7_2.sce @@ -0,0 +1,20 @@ +clc
+//initialisation of variables
+d1= 4//ft
+d2= 2 //in
+l= 300 //ft
+P= 5 //lb/in^2
+h1= 3 //ft
+h2= 6 //ft
+f= 0.01
+//CALCULATIONS
+X= P*2.31*10*(d2/12)^5/(f*l)
+A= %pi*d1^2/4
+function [y]=fun(h)
+ y=A*sqrt((P*2.31*10*(d2/12)^5/(f*l))-(10*(d2/12)^5*h/(f*l)))/(10*(d2/12)^5/(f*l))/7
+endfunction
+vec2=intg(h1,h2,fun)
+T= vec2
+//RESULTS
+printf ('time for the channel to fall = %.f sec',T)
+
|