This is kind of fixed by #11475 (in that prime_pi becomes part of the symbolic ring). The bigger issue is that the symbolic ring does sampling for plotting, which is horribly inefficient for prime_pi -- something that is solved with the custom plotting method for prime_pi.
On Tue, Jul 17, 2012 at 9:55 PM, Dan Drake <dr...@kaist.edu> wrote: > Plotting the prime_pi function is really strange. It seems like > something needs a little polish: > > sage: plot(prime_pi, (5,100)) > > fails with "TypeError: an integer is required". However, > > sage: prime_pi(15.5) > 6 > > works fine. So the plot command seems to be failing for no good reason. > But similar commands work fine: > > sage: plot(prime_pi, 5,100) > > produces the plot. > > I can do "plot(sin, (5,100))" and "plot(sin, 5, 100)" and I get the same > plot. I understand that prime_pi is very different from sine, but IMHO the > user interface for a basic plot should work either way. Does anyone else > agree? > > (A participant in our PREP workshop got tripped up by this today.) > > > Dan > > -- > --- Dan Drake > ----- http://mathsci.kaist.ac.kr/~drake > ------- > -- Andrew -- -- 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