blob: 6bfd578397dc7454ef88a3104372a8d6d30dddbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
clc
//initialisation of variables
h1=2.1*3//ft
h2=2.1//ft
h=8.4//ft
p=1000//ft
h3=5.7//ft
h4=4.2*3//ft
q=4.2//ft
s=1.68//ft
q1=1.33//ft
//CALCULATIONS
A=p*h/h2//ft
B=p*(h3+h4)/q//ft
C=p*(h1+h2)/s//ft
//RESULTS
printf('the equilent pipe for the Hazen willians coefficent=% f ft',A)
printf('the equilent pipe for the Hazen willians coefficent=% f ft',B)
printf('the equilent pipe for the Hazen willians coefficent=% f ft',C)
|