Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

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.

share|improve this question
    
Try to give a look to the Sage's Reference Manual precisely here:sagemath.org/doc/reference/sage/plot/plot3d/… –  Giuseppe Tortorella 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
add comment

1 Answer

up vote 1 down vote accepted

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))
share|improve this answer
    
Yeah, found it just a second ago. Thanks alot. –  Tool May 21 '12 at 17:04
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.