Hi,

If you copy and paste the following into a command line sage session

print ln(factorial(171))
print ln(factorial(171).n(100))
print ln(factorial(171)).n(100)
print ln(factorial(171)*1.0)

you get:

sage: print ln(factorial(171))
log(1241018070217667823424840524103103992616605577501693185388951803611996075221691752992751978120487585576464959501670387052809889858690710767331242032218484364310473577889968548278290754541561964852153468318044293239598173696899657235903947616152278558180061176365108428800000000000000000000000000000000000000000)
sage: print ln(factorial(171).n(100))
711.71472580229000695352178063
sage: print ln(factorial(171)).n(100)
711.71472580229000695352178063
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:

log(1241018070217667823424840524103103992616605577501693185388951803611996075221691752992751978120487585576464959501670387052809889858690710767331242032218484364310473577889968548278290754541561964852153468318044293239598173696899657235903947616152278558180061176365108428800000000000000000000000000000000000000000)
711.71472580229000695352178063
711.71472580229000695352178063
inf

Is this a bug or am I missing something obvious?

Found on sage-4.3.3 64bit linux, but older versions exhibit the same
behaviour.

regards,

Jens

-- 
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

Reply via email to