Opened 9 years ago
Last modified 8 years ago
#14504 new defect
finite field coercion fails for extended fields
Reported by: | Lluis Pamies-Juarez | Owned by: | Burcin Erocal |
---|---|---|---|
Priority: | major | Milestone: | sage-6.4 |
Component: | symbolics | Keywords: | |
Cc: | Merged in: | ||
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
The following code works:
sage: ff.<x>=GF(4) sage: ff(x+1)
However, if we try to get the element from an expression it fails:
sage: o=var('o') sage: ff.<x>=GF(4) sage: ff((x*o).coefficient(o)) TypeError: unable to coerce
This bug only happens for extended fields. You can try it by executing:
for fsize in [2,3,4,5,8]: ff.<x>=GF(fsize) o=var('o') e=(x+1)*o e.coefficient(o) c = e.coefficient(o) try: print fsize, ff(c) except: print fsize, 'extended fields fail!'
Change History (5)
comment:1 Changed 9 years ago by
Cc: | punarbasu@… removed |
---|---|
Component: | PLEASE CHANGE → symbolics |
Milestone: | → sage-5.10 |
Owner: | changed from tbd to Burcin Erocal |
comment:2 Changed 9 years ago by
Milestone: | sage-5.11 → sage-5.12 |
---|
comment:3 Changed 9 years ago by
Milestone: | sage-6.1 → sage-6.2 |
---|
comment:4 Changed 8 years ago by
Milestone: | sage-6.2 → sage-6.3 |
---|
comment:5 Changed 8 years ago by
Milestone: | sage-6.3 → sage-6.4 |
---|
Note: See
TracTickets for help on using
tickets.