On Mar 16, 9:20 am, Anthony Wickstead wrote:
> But in your example the first range is empty. I changed the exclude value to
> [1..2,3..4] and again the first interval is fine and the second wrong.
Good point, I changed everything else to avoid the pi but not that!
Hmm, maybe that's a clue...
But in your example the first range is empty. I changed the exclude value to
[1..2,3..4] and again the first interval is fine and the second wrong.
Tony
Thanks for this bug report. Sometimes this happens even for the first range.
sage: plot(sin(pi*x)^cos(pi*x),(x,0,4),exclude=[pi..2,3..4],ymax
On Mar 16, 6:29 am, Anthony Wickstead wrote:
> I am trying to understand the behaviour of the option exclude in plot() when
> a range of values is included.
>
> It looks to me that if a simple range like "exclude=[pi..2*pi]" is used and
> the function is defined and real-valued in that range t