#6428: Large exponents overflow to negative in polydict ring
---------------------+------------------------------------------------------
Reporter: broune | Owner: tbd
Type: defect | Status: new
Priority: major | Milestone:
Component: algebra | Keywords:
Reviewer: | Author:
Merged: |
---------------------+------------------------------------------------------
Large exponents overflow to negative in polydict ring:
sage: from sage.rings.polynomial.multi_polynomial_ring import \
... MPolynomialRing_polydict
sage: ring = MPolynomialRing_polydict(ZZ, 3, ['a','b','c'], "lex")
sage: a = ring.gens()[0]
sage: a^(2^31-1)
a^2147483647
sage: a^(2^31)
a^-2147483648
sage: a^(2^32)
1
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6428>
Sage <http://sagemath.org/>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---