Skip to content

Cyclotomic field elements are not converted to Gap correctly #5618

@saliola

Description

@saliola

Although this works:

sage: K = CyclotomicField(3)
sage: z = K.an_element(); z
zeta3
sage: gap(z)
zeta3

the resulting gap element doesn't have the correct properties:

sage: K(gap.E(3)) == z  # Good!
True
sage: gap(K(gap.E(3))) == gap.E(3)  # Bad!
False

This causes the following problem with group characters.

sage: H = AlternatingGroup(4)
sage: g = H.list()[1]
sage: K = H.subgroup([g])
sage: z = CyclotomicField(3).an_element(); z
sage: c = K.character([1,z,z**2])
...
RuntimeError: Gap produced error output
Error, no 1st choice method found for `CONDUCTOR' on 1 arguments

Note: the above works if one takes z = gap.E(3).

CC: @wdjoyner

Component: algebra

Keywords: gap interface cyclotomic field

Author: Simon King

Reviewer: Luis Felipe Tabera Alonso

Merged: sage-4.6.2.alpha2

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions