# How to draw a cone in Sage?

Given a cone with equation

z^2 = x^2 + y^2,

how would I draw it in Sage?

I tried turning it into a function and passing arguments but it didn't work out for me.

-
Try to give a look to the Sage's Reference Manual precisely here:sagemath.org/doc/reference/sage/plot/plot3d/… – Giuseppe May 21 '12 at 16:54
Thanks, I got this with implicit_plot :). If you wan't, answer it so I can accept it. – Tool May 21 '12 at 17:03

## 1 Answer

I have drawn the cone with the following code:

var('x,y,z')
implicit_plot3d(x^2+y^2-z^2==0, (x, -3, 3), (y, -3,3), (z, -3,3))

-
Yeah, found it just a second ago. Thanks alot. – Tool May 21 '12 at 17:04