Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

finite field coercion fails for extended fields #14504

Open
sagetrac-llpamies mannequin opened this issue Apr 29, 2013 · 0 comments
Open

finite field coercion fails for extended fields #14504

sagetrac-llpamies mannequin opened this issue Apr 29, 2013 · 0 comments

Comments

@sagetrac-llpamies
Copy link
Mannequin

sagetrac-llpamies mannequin commented Apr 29, 2013

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!'

Component: symbolics

Issue created by migration from https://trac.sagemath.org/ticket/14504

@ppurka ppurka added this to the sage-5.10 milestone Apr 29, 2013
@jdemeyer jdemeyer modified the milestones: sage-5.11, sage-5.12 Aug 13, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@mkoeppe mkoeppe removed this from the sage-6.4 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants