This makes sense, thanks. The function that made me discover this behaviour does indeed tend towards an infinite slope at the boundary of the range I prescribed. However, I am not sure if I understand correctly. Can it happen that points outside of the range specified by xmin and xmax are evaluated? It does not seem to make sense to me to choose random points outside of the specified range. I thought that all the points chosen would include the xmin and xmax plus any points chosen in between. If a function gets evaluated outside of the specified range, it could lead to all sorts of problems if this function is not defined outside of this range.
Stan kcrisman wrote: > >> Would it help to open a ticket for motivation? I noticed another issue, >> namely that the y-axis range is chosen randomly and the plots look >> different every time they are evaluated. I remember reading something >> about this bug a while ago but I don't remember where. >> > > Believe it or not, this is not a bug per se, but rather a feature of > adaptive plotting that our show() command should be made perhaps to > work around. The y-axis range encompasses whatever points were > actually evaluated (unless you use whuss' new asymptote-avoiding > option, though the points are still generated). For polynomials this > will not be a problem, but for anything which has irregular behavior > like an asymptote, the actual y-values will depend on the (randomized) > points chosen. If you put randomize=False this will not happen, I > think. See > > sage: from sage.plot.plot import generate_plot_points > sage: generate_plot_points? > > for more information. Ticket # 3985 is what you want for this. > Probably the easiest fix is to use a heuristic to tell > generate_plot_points when to stop plotting, similar to the resolution > of #6035, but I am uncomfortable with this approach because it is hard > to predict just how slope-y "naturally occurring" functions should be. > > - kcrisman > > > -- ________________________________________ Stan Schymanski Scientist Max Planck Institute for Biogeochemistry Postfach 10 01 64 D-07701 Jena Phone: +49.3641.576264 Fax: +49.3641.577274 WWW: http://www.bgc-jena.mpg.de/~sschym Biospheric Theory and Modelling Group http://www.bgc-jena.mpg.de/bgc-theory/ _________________________________________ --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---