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.
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...
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.
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...