Ticket #6428 (closed defect: fixed)
Large exponents overflow to negative in polydict ring
| Reported by: | broune | Owned by: | tbd |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.3.2 |
| Component: | commutative algebra | Keywords: | |
| Cc: | Author(s): | Willem Jan Palenstijn | |
| Report Upstream: | N/A | Reviewer(s): | Sebastian Pancratz |
| Merged in: | sage-4.3.2.alpha0 | Work issues: |
Description (last modified by broune) (diff)
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
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

