Robert Bradshaw wrote: > On Aug 28, 2008, at 6:47 AM, kcrisman wrote: > >> Thanks for the replies (and the great work!). Some followup below: >> >>> Nope, none of these are fixed by the new changes. I tried Maple and >>> it did the same thing -- I don't know what Mathematica does. You can >>> do these as a workaround: >>> >> Interesting that Maple does it. Anyone know about Mma? Mac's Grapher >> definitely IS smart about this, rather elegantly so. >> >>> sage: plot(tan,-20,20).show(ymin=-5, ymax=5) >>> sage: plot((x-1)/(x+2),-4,4).show(ymin=-10, ymax=10) >>> >> Of course, these plots still have the Intermediate Value Property on >> the entire real line. >> >>> I don't know the best way to be "smart" about fixing this such as how >>> much of the asymptote to include, etc. >> Yeah, I was thinking about this, because what you would really want to >> do is have an algorithm which would automatically check if the 'bend' >> was too great compared to the rest of the function and then NOT plot >> the line connecting those points. But would that slow plotting down >> too much (since you'd have to compare *all* the bends to each other, >> not just to max_bend like in adaptive refinement, as I understand >> it)? Not to mention trying to decide what "too great compared" means. > > It might be easier to detect a root in 1/f(x) (or some kind of > heuristic given a sign change between f(a) and f(b), is a root of f > (x) or 1/f(x) more likely).
Another thing: does the adaptive plotting code handle asymptotes intelligently? That is, when it picks one point on either side of an asymptote, it seems like it would try to recursively subdivide unless it knows there is an asymptote there or can somehow guess there is an asymptote. Thanks, Jason --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---