#17627: Construction of FinitelyGeneratedGroup from GAP group
--------------------------------+------------------------
       Reporter:  vdelecroix    |        Owner:
           Type:  enhancement   |       Status:  new
       Priority:  major         |    Milestone:  sage-6.5
      Component:  group theory  |   Resolution:
       Keywords:                |    Merged in:
        Authors:                |    Reviewers:
Report Upstream:  N/A           |  Work issues:
         Branch:                |       Commit:
   Dependencies:                |     Stopgaps:
--------------------------------+------------------------

Comment (by captaintrunky):

 Hi!
 I'm working on this ticket currently. I think that it is more or less
 ready, but I struggle with the following behavior:

 {{{
 f = FreeGroup("x,y")
 g = f/ [x^2*y^-1, x^3*y^2, x*y*x^-1*y^-1]
 NameError                                 Traceback (most recent call
 last)
 <ipython-input-4-6f3ccf45fba8> in <module>()
 ----> 1 g = f/ [x**Integer(2)*y**-Integer(1), x**Integer(3)*y**Integer(2),
 x*y*x**-Integer(1)*y**-Integer(1)]

 NameError: name 'y' is not defined
 }}}
 while

 {{{
 f.<x,y> = FreeGroup()
 g = f/ [x^2*y^-1, x^3*y^2, x*y*x^-1*y^-1]
 }}}
 works without any issues. Probably I'm missing something obvious, but how
 can I 'register' variables globally without <,> notion? Is there some sort
 of function that is wrapped by <>? My goal is to write something like
 this:

 {{{
 names = repr(free_group.GeneratorsOfGroup()).strip('[   ]')
 free_group = FreeGroup(names)
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/17627#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to