William Stein wrote: > On Sun, Apr 6, 2008 at 9:36 AM, Jaap Spies <[EMAIL PROTECTED]> wrote: >> In the notebook of sage-2.11: >> >> time plot(1.0 - x * floor(1/x), (x,0.00001,1.0) >> >> CPU time: 143.77 s, Wall time: 1660.39 s >> >> with a correct image. >> >> Maple is almost immediate. >> >> >> Even worse: >> time plot(1.0 - x * floor(1/x), (x, 0.0, 1.0), plot_points=1000) >> >> CPU time: 244.71 s, Wall time: 5155.23 s >> >> >> Thoughts? See trac ticket #2831 > > There is a bug when deciding to use fast float, since the above > plot takes 0.04 seconds to draw when one calls fast_float explicitly: > > sage: time plot((1.0 - x * floor(1/x))._fast_float_(x), (x,0.00001,1.0)) > CPU times: user 0.03 s, sys: 0.01 s, total: 0.04 s >
That is quite a speed up!! Jaap > -- William > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---