Ask Your Question

3d plotting of sphere in SAGE

asked 2020-06-02 09:49:49 -0600

creyesm1992 gravatar image

updated 2020-06-02 11:35:13 -0600

FrédéricC gravatar image

Hello, i entered this in my SAGE and the result is an empty space, not the sphere i wanted:

x, y, z = var('x,y,z')
sage.plot.plot3d.implicit_plot3d.implicit_plot3d(x^2+y^2+z^2==4, (x,-3,3), (y,-3,3), (z,-3,3))

what more is necessary to have the sphere i want :-(?

edit retag flag offensive close merge delete


Try removing "sage.plot.plot3d.implicit_plot3d." from your code

FrédéricC gravatar imageFrédéricC ( 2020-06-04 02:29:48 -0600 )edit

1 answer

Sort by » oldest newest most voted

answered 2020-06-02 10:39:19 -0600

aszanti gravatar image

only: implicit_plot3d(x^2+y^2+z^2==4, (x,-3,3), (y,-3,3), (z,-3,3))

edit flag offensive delete link more



Indeed implicit_plot3d(x^2+y^2+z^2==4, (x,-3,3), (y,-3,3), (z,-3,3)) is sufficient and it does plot the sphere in Sage 9.1. Which version of Sage are you using and what is your OS?

eric_g gravatar imageeric_g ( 2020-06-02 11:08:41 -0600 )edit

hello! I am using sage 8.1, i open "SageMath 8.1 Notebook" and i got error with all the options you gave me :-( it is always a cell with no figure

creyesm1992 gravatar imagecreyesm1992 ( 2020-06-02 17:47:39 -0600 )edit

the error that sage gave me in your codes is that it does not recognize the variables

creyesm1992 gravatar imagecreyesm1992 ( 2020-06-02 17:49:05 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-06-02 09:49:49 -0600

Seen: 76 times

Last updated: Jun 02