What are the equations for a cone and a half cone?

The equations for a cone and a half cone are as follows:

Cone: $x^2 + y^2 = \frac{z^2}{k^2}$

where $k$ is the radius of the base of the cone.

Half cone: $x^2 + y^2 = \frac{z}{k}$

where $k$ is the radius of the base of the half cone.