On Nov 9, 2009, at 8:58 AM, Adam Sorkin wrote:

>
> I'd like to do it this way, running everything through sage, but it
> doesn't work. Here is what I'm getting:
>
> sage: g = SymmetricGroup(3)
> sage: t = [(2,1),(2,1)]
> sage: gap.Braid(g,t)
> ---------------------------------------------------------------------------

> RuntimeError: Gap produced error output
> Error, no 1st choice method found for `IsConjugate' on 3 arguments
>
>   executing Braid($sage9,$sage16);

Hmm... Not sure about this. I'm guessing t is not the right thing.

> I get a different error using
> gap.eval("Braid(%s,%s)" % gap(g), gap(t))
>
> Specifically,
>
> sage: gap.eval("Braid(%s,%s)" % gap(g), gap(t) )
> ---------------------------------------------------------------------------
> TypeError                                 Traceback (most recent call
> last)
>
> /Users/adamsorkin/Desktop/braid_dir/<ipython console> in <module>()
>
> TypeError: not enough arguments for format string
>
>
> Perhaps this one is easier to fix.

Yes, that should be

sage: gap.eval("Braid(%s,%s)" % (gap(g), gap(t)) )

But will probably give the same error. Is this what t is supposed to  
be in GAP?

sage: t = [(2,1),(2,1)]
sage: gap(t)
[ [ 2, 1 ], [ 2, 1 ] ]

Or did you want something like

sage: sage: g = SymmetricGroup(3)
sage: t = [g((2,1)), g((3,1))] # let t be a list of group elements  
(not a list of tuples)
sage: gap(t)
[ (1,2), (1,3) ]
sage: gap.Braid(g,t)  # this is more likely to work

Sorry this is so rough around the edges. Usually what happens is  
someone wraps the functionality nicely, so all this happens behind the  
scenes and it "just works," but that obviously hasn't happened for the  
Braids package.

- Robert


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to