Ask Your Question
0

3d plotting of sphere in SAGE

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

creyesm1992 gravatar image

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

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

Comments

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

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

1 answer

Sort by » oldest newest most voted
1

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

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

Comments

1

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 -0500 )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 -0500 )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 -0500 )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

Stats

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

Seen: 68 times

Last updated: Jun 02