Algebra and Trigonometry 10th Edition

$r=\frac{x}{2}$
The length $x$ of sides of the square is equal to the diameter of the circular base. $x=2r$ $r=\frac{x}{2}$