Hello,

Functions plot is fine with singular functions as

plot (sin(1/x), x, 0, 5)

Plot has also a symbolic option detect_poles=True.
But this option isn't designed for theses plots.
There are unpleasant vertical lines.

plot (floor(10*x), x, 0, 2)
plot (x*floor(1/x), x, 0, 2)
plot (arctan ((tan(x)^2-1)/(2*tan(x)), x, 0, 2)

Is it easy to change the adaptative algorithm ?
I don't feel cool whith the plot.py file.

The algorithm seems to be :

while "estimated point is too far from computed points" and "step is 
large" : add interpoled points

by

while "estimated point is too far from computed points" and "step is 
large" : add interpoled points
if "the right option is set" and "step is small" and "there is a jump of 
some pixels" then draw a new curve.

I don't think it's too hard to compute about one function call per pixel,
and then the mathematic are more respected !
It's not pleasant to build a large list of points and then plot theses 
points (and not the polygonal line) because the speed isn't constant for 
any curves.

Francois



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

Reply via email to