I posted a patch there that should fix it; I have to work on other stuff, but if someone else wants to take over and write some doctests, make sure it works in lots of cases... David
On Mon, Oct 25, 2010 at 17:14, Burcin Erocal <bur...@erocal.org> wrote: > On Mon, 25 Oct 2010 17:00:39 -0400 > David Roe <r...@math.harvard.edu> wrote: > > > This is a good workaround, but the original problem can be traced to > > the function sage.symbolic.expression.Expression.__int__ > > > > def __int__(self): > > #FIXME: can we do better? > > return int(self.n(prec=100)) > > > > Presumably you could adaptively estimate to higher precision until > > your error interval included only one integer... > > This is #9953 on trac: > > http://trac.sagemath.org/sage_trac/ticket/9953 > > > Cheers, > Burcin > > -- > 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<sage-devel%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/sage-devel > URL: http://www.sagemath.org > -- 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