On 11/ 4/10 11:38 PM, David Joyner wrote:
sage: plot3d(sqrt(sin(x)*sin(y)),(x,-2*pi,2*pi),(y,-2*pi,2*pi),plot_points=750)
and
sage:
B=plot3d(sqrt(sin(x)*sin(y)),(x,-2*pi,2*pi),(y,-2*pi,2*pi),plot_points=750,viewer='tachyon')
sage: B.show()
look better. I wonder what Mma uses as the default number of points.
Does anyone know if they are comparable with Sage's default?
As far as I know, Mathematica choses the point adaptively, so regions where the
function is changing rapidly get sampled more often. The default is "Automatic"
rather than fixed integer, though there is the option "PlotPoints".
The documentation for Plot3D
http://reference.wolfram.com/mathematica/ref/Plot3D.html
says
"You should realize that with the finite number of sample points used, it is
possible for Plot3D to miss features in your functions. To check your results,
you should try increasing the settings for PlotPoints and MaxRecursion."
However, the documentation on the 2D version (Plot[])
http://reference.wolfram.com/mathematica/ref/Plot.html
gives more information:
"Plot initially evaluates f at a number of equally spaced sample points
specified by PlotPoints. Then it uses an adaptive algorithm to choose additional
sample points, subdividing a given interval at most MaxRecursion times."
One can set MaxRecursion->Infinity too,
Dave
--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org