summaryrefslogtreecommitdiff
path: root/2021/CH5/EX5.1/EX5_1.sce
blob: df65f5113d9f544897c550af3198d5611c578056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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");