blob: 0f2616ef37d37343640e07b3aa136b3f170eb0e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
//initialisation of variables
f= 0.006
l= 2600 //ft
Q= sqrt(5040) //ft^3
g= 32.2 //ft/sec^2
hf= 57.5 //ft
//CALCULATIONS
d= ((32*f*l*Q^2)/(%pi^2*g*hf))^(1/5)*12.11
//RESULTS
printf ('diameter of the pipe= %.1f in',d)
|