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

Converting elements in AbelianGroup to gap element #6292

Open
sagetrac-jlefebvre mannequin opened this issue Jun 15, 2009 · 0 comments
Open

Converting elements in AbelianGroup to gap element #6292

sagetrac-jlefebvre mannequin opened this issue Jun 15, 2009 · 0 comments

Comments

@sagetrac-jlefebvre
Copy link
Mannequin

sagetrac-jlefebvre mannequin commented Jun 15, 2009

Some trouble in converting elements in AbelianGroup to gap elements
For example we can do this;

sage: G = SymmetricGroup(5)
sage: g = G.list()[2]
sage: H = gap(G)
sage: g in H
True

But not this;

sage: G = AbelianGroup([2,2])
sage: g = G.list()[2]
sage: H = gap(G)
sage: g in H
[...]
TypeError: Gap produced error output
Variable: 'f0' must have a value

Similarly we can't go back the other way around.
That is we can do this;

sage: G = SymmetricGroup(5)
sage: H = gap(G)
sage: r = H.ConjugacyClasses()[2].Representative()
sage: type(r)
<class 'sage.interfaces.gap.GapElement'>
sage: r in G
True
sage: G(r)
(1,2)

But not this

sage: G = AbelianGroup([2,2])
sage: H = gap(G)
sage: r = H.ConjugacyClasses()[2].Representative()
sage: r
f1
sage: r in G
False
sage: G(r)
[...]
TypeError: Argument x (= f1) is of wrong type.

Component: group theory

Keywords: AbelianGroup

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

@sagetrac-jlefebvre sagetrac-jlefebvre mannequin added this to the sage-5.11 milestone Jun 15, 2009
@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

3 participants