summaryrefslogtreecommitdiff
path: root/2021/CH5/EX5.1/EX5_1.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2021/CH5/EX5.1/EX5_1.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2021/CH5/EX5.1/EX5_1.sce')
-rwxr-xr-x2021/CH5/EX5.1/EX5_1.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2021/CH5/EX5.1/EX5_1.sce b/2021/CH5/EX5.1/EX5_1.sce
new file mode 100755
index 000000000..df65f5113
--- /dev/null
+++ b/2021/CH5/EX5.1/EX5_1.sce
@@ -0,0 +1,15 @@
+//Finding of velocity and discharge
+//Given
+d1=0.4;
+r1=d1/2;
+d2=0.2;
+r2=d2/2;
+v1=5;
+pi=3.14;
+//To Find
+a1=(pi*r1^2);
+a2=(pi*r2^2);
+v2=(a1*v1)/a2;
+q2=a2*v2;
+disp("Velocity at section -2 ="+string(v2)+" m/second");
+disp("Discharge ="+string(q2)+"m^3/seconds");