Whoops, I was copying the lines manually. The line should have been sage: x = G.InvariantsOfDegree(GF(2),2)
Victor On Aug 2, 5:32 pm, William Stein <[email protected]> wrote: > On Tue, Aug 2, 2011 at 1:29 PM, VictorMiller <[email protected]> wrote: > > I'm unable to get some magma output converted back into sage. This > > has to do with group invariants. Here's a script that produces the > > error > > > sage: G =magma(SymmetricGroup(5)) > > sage: x = G.InvariantsOfDegree(2) > > What version of Magma are you using? With Magma V2.17-4 I get > > >> _sage_[7]:=InvariantsOfDegree(_sage_[5],_sage_[6]); > > ^ > Runtime error in 'InvariantsOfDegree': Bad argument types > Argument types given: GrpPerm, RngIntElt > > > > > > > > > > > sage: print x > > [ > > x1^2 + x2^2 + x3^2 + x4^2 + x5^2, > > x1*x2 + x1*x3 + x2*x3 + x1*x4 + x2*x4 + x3*x4 + x1*x5 + x2*x5 + x3*x5 > > + > > x4*x5 > > ] > > sage: print x.sage() > > NameError: name 'x1' is not defined > > > -- > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group > > athttp://groups.google.com/group/sage-support > > URL:http://www.sagemath.org > > -- > William Stein > Professor of Mathematics > University of Washingtonhttp://wstein.org -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
