Step 1: Volume of a cylinder.
The volume of a cylinder is given by the formula:
\[
V = \pi r^2 h
\]
Where:
- \( V \) is the volume,
- \( r \) is the radius of the base,
- \( h \) is the height of the cylinder.
Step 2: Use the known values.
We are given that the cylinder is \( \frac{1}{2} \) full of water, so:
\[
\frac{1}{2} \times \pi r^2 \times 9 = 36
\]
Simplifying:
\[
\pi r^2 \times 9 = 72 \quad \implies \quad r^2 = \frac{72}{9\pi} = \frac{8}{\pi}
\]
Step 3: Calculate the diameter.
The diameter is \( 2r \), so:
\[
r = \sqrt{\frac{8}{\pi}} = \frac{4}{\sqrt{\pi}}
\]
Thus, the diameter is:
\[
2r = 2 \times \frac{4}{\sqrt{\pi}} = \frac{8}{\sqrt{\pi}}
\]
\[
\boxed{\frac{4}{\sqrt{\pi}}}
\]