Ask Your Question
0

3d plotting of sphere in SAGE

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

creyesm1992 gravatar image

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

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

1 Answer

Sort by » oldest newest most voted
1

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

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 18:08:41 +0200 )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 +0200 )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 +0200 )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 16:49:49 +0200

Seen: 386 times

Last updated: Jun 02 '20