Hi, I spent most of the last week at a Macaulay2 workshop, and actually playing with M2<->Sage interface :-) here you are:
On Friday, May 27, 2016 at 6:34:35 PM UTC+1, Christian Stump wrote: > > > YES. > > thanks, that's the first step -- I did actually mean so that I get the > output as Sage objects. Sorry for not saying that explicitly... > sage: macaulay2.eval(""" ....: loadPackage "Points"; ....: M = matrix{{1,2,3},{4,5,6}}; ....: R = QQ[x,y,MonomialOrder=>Lex]; ....: (Q,inG,G) = points(M,R) ....: """) sage: M=macaulay2('M').to_sage(); M [1 2 3] [4 5 6] sage: type(M) <type 'sage.matrix.matrix_integer_dense.Matrix_integer_dense'> sage: R=macaulay2('R').to_sage(); R Multivariate Polynomial Ring in x, y over Rational Field sage: type(R) <type 'sage.rings.polynomial.multi_polynomial_libsingular.MPolynomialRing_libsingular'> sage: Q=macaulay2('Q').to_sage(); Q [1, y, y^2] sage: type(Q) <type 'list'> sage: type(Q[1]) <type 'sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular'> sage: inG=macaulay2('inG').to_sage(); inG Ideal (y^3, x) of Multivariate Polynomial Ring in x, y over Rational Field sage: G=macaulay2('G').to_sage(); G [y^3 - 15*y^2 + 74*y - 120, x - y + 3] HTH, Dima -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.