First time here? Check out the FAQ!

Ask Your Question
0

3d plotting of sphere in SAGE

asked 4 years ago

creyesm1992 gravatar image

updated 4 years ago

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 :-(?

Preview: (hide)

Comments

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

FrédéricC gravatar imageFrédéricC ( 4 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 4 years ago

aszanti gravatar image

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

Preview: (hide)
link

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 ( 4 years ago )

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 ( 4 years ago )

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

creyesm1992 gravatar imagecreyesm1992 ( 4 years ago )

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: 4 years ago

Seen: 492 times

Last updated: Jun 02 '20