How to draw a cone in Sage?

285 Views Asked by At

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.

1

There are 1 best solutions below

1
On BEST 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))