#7923: signed int overflow in givaro elements' __pow__ method
--------------------------------+-------------------------------------------
Reporter: roed | Owner: AlexGhitza
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.3.1
Component: basic arithmetic | Keywords:
Work_issues: | Author: David Roe
Upstream: N/A | Reviewer:
Merged: |
--------------------------------+-------------------------------------------
Description changed by roed:
Old description:
> {{{
> When 2^31 < q^2 < 2^32, one can get an overflow in exponentiation
> (because of the use of signed vs unsigned ints).
>
> This occurs for q=3^10.
> }}}
>
> {{{
> sage: K.<a> = GF(3^10)
> sage: b = a^9 + a^7 + 2*a^6 + a^4 + a^3 + 2*a^2 + a + 2
> sage: b^(71*7381) == (b^71)^7381
> False
> }}}
New description:
When 2^31^ < q^2^ < 2^32^, one can get an overflow in exponentiation
(because of the use of signed vs unsigned ints).
This occurs for q=3^10^.
{{{
sage: K.<a> = GF(3^10)
sage: b = a^9 + a^7 + 2*a^6 + a^4 + a^3 + 2*a^2 + a + 2
sage: b^(71*7381) == (b^71)^7381
False
}}}
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7923#comment:3>
Sage <http://www.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.