Hello sage-devel, I got this from the "report a problem" bugreport
(observed on sagenb.org) and I can confirm this using sage 4.5, ubuntu
10.4, intel 32bit

The problem is that a big integer expression is not converted
correctly to a Python 'int'

sage: z = var('z'); f(z) = z^2 + 1
sage: def ppol(n,z):
          g = f(z)
          for i in range(0, n-1):
              g = f(g)
          return g

sage: h = ppol(9,1)
sage: h
3791862310265926082868235028027893277370233152247388584761734150717768254410341175325352026
sage: type(h)
<type 'sage.symbolic.expression.Expression'>
sage: ZZ(h)
3791862310265926082868235028027893277370233152247388584761734150717768254410341175325352026
sage: int(h)
3791862310265926082868235028028848611706634562188571520717816257498752565976400597161607168L

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to