Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I figured out the problem. In sage spherical 3d plot, I had to give phi component first and theta component second. The syntax is exactly opposite of Mathematica syntax.

spherical_plot3d(1+2cos(2x),(y,0,2*pi),(x,0,pi),aspect_ratio=1).show()

This gave me the correct plot I wanted. image description

I hope this post will be helpful if anybody else also gets bugged by this reverse input format of spherical_plot3d function.

Thanks to everyone for answers they provided...

click to hide/show revision 2
No.2 Revision

I figured out the problem. In sage spherical 3d plot, I had to give phi component first and theta component second. The syntax is exactly opposite of Mathematica syntax.

spherical_plot3d(1+2cos(2x),(y,0,2*pi),(x,0,pi),aspect_ratio=1).show()

spherical_plot3d(1 + 2*cos(2*x), (y,0,2*pi), (x,0,pi), aspect_ratio=1).show()

This gave me the correct plot I wanted. wanted.

image description

I hope this post will be helpful if anybody else also gets bugged by this reverse input format of spherical_plot3d function.

Thanks to everyone for answers they provided...