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/CH7/EX7.11.a/Example7_11.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/CH7/EX7.11.a/Example7_11.sce')
-rwxr-xr-x | 2132/CH7/EX7.11.a/Example7_11.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2132/CH7/EX7.11.a/Example7_11.sce b/2132/CH7/EX7.11.a/Example7_11.sce new file mode 100755 index 000000000..69128a9d9 --- /dev/null +++ b/2132/CH7/EX7.11.a/Example7_11.sce @@ -0,0 +1,21 @@ +////Example 7.11 at page 246
+clc;
+clear;
+close;
+format('v',7);
+//Given data :
+g=9.81;//gravity constanty
+D1=400/1000;//meter
+D2=300/1000;//meter
+D3=200/1000;//meter
+v1=3;//m/s
+v2=2;//m/s
+A1=%pi/4*D1^2;//m^2
+A2=%pi/4*D2^2;//m^2
+A3=%pi/4*D3^2;//m^2
+Q1=A1*v1;//cumec
+disp(Q1,"Discharge in pipe 1 in cumec : ");
+Q2=A2*v2;//cumec
+Q3=Q1-Q2;//cumec
+v3=Q3/A3;//m/s
+disp(v3,"Velocity of water in 200mm pipe in m/s : ");
|