Ask Your Question

3d plotting of sphere in SAGE

asked 2020-06-02 16:49:49 +0100

creyesm1992 gravatar image

updated 2020-06-02 18:35:13 +0100

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 09:29:48 +0100 )edit

1 Answer

Sort by » oldest newest most voted

answered 2020-06-02 17:39:19 +0100

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 18:08:41 +0100 )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-03 00:47:39 +0100 )edit

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

creyesm1992 gravatar imagecreyesm1992 ( 2020-06-03 00:49:05 +0100 )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 16:49:49 +0100

Seen: 374 times

Last updated: Jun 02 '20