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 /2132/CH6/EX6.19/Example6_19.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 '2132/CH6/EX6.19/Example6_19.sce')
-rwxr-xr-x | 2132/CH6/EX6.19/Example6_19.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/2132/CH6/EX6.19/Example6_19.sce b/2132/CH6/EX6.19/Example6_19.sce new file mode 100755 index 000000000..a5998f2f7 --- /dev/null +++ b/2132/CH6/EX6.19/Example6_19.sce @@ -0,0 +1,13 @@ +//Example 6.19
+clc;
+clear;
+close;
+format('v',4);
+//Given data :
+g=9.81;//constant
+A=3.2;//m^2
+a=10*10^-4;//m^2
+H=5;//meter
+Cd=0.6;//Coefficient of discharge
+t=2*A*sqrt(H)/Cd/a/sqrt(2*g);//sec
+disp("Time taken is "+string(floor(t/3600))+" hour "+string(floor((t/3600-floor(t/3600))*60))+" minute "+string(((t/3600-floor(t/3600))*60-floor((t/3600-floor(t/3600))*60))*60)+" seconds.");
|