blob: a114bd5d3a283fb2ee8a16b8a518f1d66c90b636 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
clc
clear
//Initialization of variables
hw=3/12 //ft
gam1=62.4 //lb/ft^3
gam2=0.07 //lb/ft^3
g=32.2 //ft/s^2
//calculations
p=hw*gam1
hg=p/gam2
V=sqrt(2*g*hg)
//results
printf("velocity of gas = %.1f fps",V)
|