Try wrapping 171 with Integer and int, and 1.0 with float and RR in various combinations. My guess is that Python's treating 1.0 as a float. David
On Sun, Mar 7, 2010 at 10:15 AM, mhampton <hampto...@gmail.com> wrote: > One clue is that factorial(171) is too big to fit as a long int in > python. This is somehow handled better by the pre-parsing I guess. > > -Marshall > > On Mar 7, 6:25 am, Jan Groenewald <j...@aims.ac.za> wrote: > > Hi > > > > On Sun, Mar 07, 2010 at 04:14:41AM -0800, jyr wrote: > > > sage: print ln(factorial(171)*1.0) > > > 711.714725802290 > > > If, on the other hand, you save it to a python file and execute it via > > > the attach() command you get: > > > inf > > > Is this a bug or am I missing something obvious? > > > > sage: attach mytest.sage > > 711.714725802290 > > sage: attach mytest.py > > inf > > > > Not sure the exact reason, and what is happening underneath, > > as it is clearly not pure python running. > > > > regards, > > Jan > > > > -- > > .~. > > /V\ Jan Groenewald > > /( )\ www.aims.ac.za > > ^^-^^ > > -- > 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