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?

I am using Sage 4.8, under Ubuntu 11.10 in a VirtualBox. 

Prof. A.W. Wickstead
Pure Mathematics Research Centre
Queen's University Belfast
University Road
Belfast BT7 1NN
Northern Ireland
Phone: 028 90976004
Fax:     028 90976060

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to