looking at the units,assumingyou are using common units and 9 inches relates to the inside diameter of the pipe. (if it isn't, and your looking at schedule 9' pipe, you'll need to see a chart).
Volume= (pi)* (9/2 inches)^2*(length of pipe in inches)
which will give you a volume in inches^3.
looking at a conversion between inches cubed and gallon you get
1 cubic inch= 0.004329gallons
Volume of the pipe = 4.896 gallons
30.55 gallons (rounded) for every inch the water in the tub is deep.
This pipe will hold 23,500.7 gallons of water.
100 feet of 3-inch pipe holds 36.73 gallons of water.
This pipe will hold 1,468.8 gallons of water.
17,000 gallons
1056 GALLONS
100
About 235 gallons of water.
One foot of 3 inch pipe will hold approximately 0.625 gallons of water.
A 12 inch diameter round pipe will hold 4.89 UK gallons or 5.88 US gallons per foot.
18.264 gallons of water im not tottlaly shur but its my guess