summaryrefslogtreecommitdiff
path: root/1466/CH4/EX4.2/4_2.sce
blob: 31058bbf95f92377a21cbba3f41382e070099ae5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

clc
//initialisation of variables
d= 0.62
g= 32.2 //ft/sec^2
b= 4 //ft
H1= 2 //ft
a= 2 //ft
//CALCULATIONS
D= (2/3)*sqrt(2*g)*d*b*((H1+a)^1.5-(H1)^1.5)
//RESULTS
printf (' Quantity of water flowing thourght the pipe = %.1f ft^3/sec',D)