On Mar 16, 6:29 am, Anthony Wickstead <[email protected]> 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 then the end points and > integer points between are excluded from the plot, whilst if the function is > not real-valued in the range, e.g. "sin(x)^cos(x)", then the whole range is > excluded.
> However, if several ranges are specified then when the function is >real-valued the behaviour is like that for a single range, whilst if the >function is not real-valued then the graph *is* plotted, incorrectly, for >ranges after the first. For example the graph of >"plot(sin(x)^cos(x),(x,0,4*pi),exclude=[pi..2*pi,3*pi..4*pi])" contains a >straight line between 3*pi and 4*pi. Surely this cannot be the intended >behaviour? 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=20) This is now http://trac.sagemath.org/sage_trac/ticket/12676. Hopefully it's just something easy to fix with the exclude code. - kcrisman -- 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
