On Tue, Mar 20, 2012 at 10:13 PM, Dan Drake <dr...@kaist.edu> wrote: > plot(sqrt(2*x^2-3)/(5*x-2), (x,-10,10),ymin=-5,ymax=5) > > merrily plots points when the numerator is imaginary: > > > http://aleph.sagemath.org/?z=eJwryMkv0SguLCrRMNKqiDPSNdbU1zDVqtA10tRR0KjQ0TU00DE00NSpzM3Ms9U1BdKJFbammgCoDQ7n > > I don't mind that it complains about failing to evaluate the function, > but the plot is totally wrong. I want something more like: > > http://www.google.com/#q=sqrt(2*x%5E2-3)/(5*x-2)<http://www.google.com/#q=sqrt%282*x%5E2-3%29/%285*x-2%29> > > > Dan > > Hi Dan,
It looks to me like a line is being drawn across the gap in the domain. You can verify that this is what's going on if you do something like: plot(sqrt(2*x^2-3)/(5*x-2), (x,-10,10),ymin=-5,ymax=5,linestyle="none", marker=".") This is the same artifact that you run into when plotting over a vertical asymptote on most graphing calculators, you get a (nearly) vertical line drawn because the plotter is joining computed points with lines. It would be nice to add a feature like the `detect_poles` option where the domain could be detected better. -- Benjamin Jones <benjaminfjo...@gmail.com> -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org