On Fri, May 27, 2016 at 10:20 AM, Christian Stump
<
christi...@gmail.com> wrote:
> Hi,
>
> is there a way to achieve the below computation directly in Sage, possibly
> using the M2 interface ?
YES.
print macaulay2.eval("""
loadPackage "Points";
M = matrix{{1,2,3},{4,5,6}};
R = QQ[x,y,MonomialOrder=>Lex];
(Q,inG,G) = points(M,R)
""")
https://cloud.sagemath.com/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/files/support/2016-05-27-Macaulay2.sagews
>
> Thanks, Christian
>
> $ sage -M2
> Macaulay2, version 1.4
> with packages: ConwayPolynomials, Elimination, IntegralClosure, LLLBases,
> PrimaryDecomposition, ReesAlgebra, TangentCone
>
> i1 : loadPackage "Points";
> i2 : M = matrix{{1,2,3},{4,5,6}};
> o2 = | 1 2 3 |
> | 4 5 6 |
> 2 3
> o2 : Matrix ZZ <--- ZZ
> i3 : R = QQ[x,y,MonomialOrder=>Lex];
> i4 : (Q,inG,G) = points(M,R)
> 2 3 3 2
> o4 = ({1, y, y }, ideal (y , x), {y - 15y + 74y - 120, x - y + 3})
> o4 : Sequence
>
>
> --
> 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...@googlegroups.com.
> To post to this group, send email to
sage-s...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/sage-support.
> For more options, visit
https://groups.google.com/d/optout.
--
William (
http://wstein.org)