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/CH5/EX5.19 | |
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/CH5/EX5.19')
-rwxr-xr-x | 2132/CH5/EX5.19/Example5_19.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/2132/CH5/EX5.19/Example5_19.sce b/2132/CH5/EX5.19/Example5_19.sce new file mode 100755 index 000000000..f03adb9b0 --- /dev/null +++ b/2132/CH5/EX5.19/Example5_19.sce @@ -0,0 +1,22 @@ +//Example 5.19
+clc;
+clear;
+close;
+format('v',4);
+//Given data :
+D1=15/100;//meter
+D2=7.5/100;//meter
+g=9.81;//gravity constant
+p1=4*g*10^4;//N/m^2
+p2=1.5*g*10^4;//kg/cm^2
+w=9.81;//kg/m^2
+A1=%pi*D1^2/4;//m^2
+A2=%pi*D2^2/4;//m^2
+v1BYv2=A2/A1;
+//v1^2/2/g+p1/w=v2^2/2/g+p2/w
+//v1^2=v2^2-50*g
+v2=sqrt(50*g/(1-v1BYv2^2));//m/s
+Q=A2*v2;//m^3/sec
+Q=Q*1000;//litres/sec
+disp(Q,"Flow of water in litres/sec : ");
+//Answer is wrong in the book.
|