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.
You can ask a new question or answer this question.