Ticket #10486 (closed defect: fixed)
Conversion List -> PARI finite field extension element disregards characteristic
| Reported by: | jdemeyer | Owned by: | AlexGhitza |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.6.2 |
| Component: | basic arithmetic | Keywords: | finite field pari |
| Cc: | Work issues: | ||
| Report Upstream: | N/A | Reviewers: | John Cremona |
| Authors: | Jeroen Demeyer | Merged in: | sage-4.6.2.alpha0 |
| Dependencies: | Stopgaps: |
Description
Reported by Yannick Neyt in personal communication:
sage: k.<a>=GF(3^11) sage: x = k([1,0,1,1]); x a^3 + a^2 + 1 sage: x+x+x 3*a^3 + 3*a^2
Clearly, we should get zero in the last line, since the characteristic is 3. The problem is visible in the PARI representation:
sage: pari(x) Mod(a^3 + a^2 + Mod(1, 3), Mod(1, 3)*a^11 + Mod(2, 3)*a^2 + Mod(1, 3))
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

