On Wed, Nov 18, 2009 at 9:16 AM, Laurent <[email protected]> wrote:
> Hi.
>
> I'm writing the following code in order to plot sin(x^2+x^2) :
>
> var('x,y')
> g(x,y)=sin(x**2+y**2)
> plot3d(g(x,y),(x,-5,5),(y,-5,5))
>
> My problem is that the result is quite bad because of the sampling : all
> the points with x^2+y^2=pi/2 are not taken, so that I don't get
> beautiful circles.
>
> How can I ask for a finer sampling, or to compute more intermediate points ?

Use the plot_points option.  Type "parametric_plot3d?" for more details:

        -  ``plot_points`` - (default: "automatic", which is
           75 for curves and [40,40] for surfaces) initial number of sample
           points in each parameter; an integer for a curve, and a pair of
           integers for a surface.

Note that the documentation output by "plot3d?" doesn't even mention
the plot_points option, which is why you're confused.  I've made an
enhancement ticket for this:

   http://trac.sagemath.org/sage_trac/ticket/7488

William



 -- William

> I'm sure there is an option to add, but I don't see in the documentation
> which one. (I'm reading the Sage reference manual, version 4.1.1, Agust
> 14 2009).
>
>
> Thanks for any help
> have a good noon
> Laurent
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to 
> [email protected]
> For more options, visit this group at 
> http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to