[sage-support] Re: How to run Macaulay2 code through Sage interface

2016-06-23 Thread saad khalid
Ahh yes, sorry, I misspoke. The first part that I ran in the macaulay2.eval was working fine, it was the sage/m2 conversion that was not working for me. Oh okay! I will try to use the GAP interface. It's setup is similar to the macaulay2 interface, isn't it? As in, I'll be doing gap.eval("the

[sage-support] Re: How to run Macaulay2 code through Sage interface

2016-06-23 Thread Dima Pasechnik
On Thursday, June 23, 2016 at 5:27:30 PM UTC+1, saad khalid wrote: > > This is on the same subject, so I thought I'd ask: > > I was trying to use the Sage/M2 interface that Dima had been using, but I > couldn't quite get it to work for me. Here is what I was trying to convert > to sage: >

[sage-support] Re: How to run Macaulay2 code through Sage interface

2016-06-23 Thread saad khalid
This is on the same subject, so I thought I'd ask: I was trying to use the Sage/M2 interface that Dima had been using, but I couldn't quite get it to work for me. Here is what I was trying to convert to sage: macaulay2.eval(""" K = toField(QQ[zet]/(zet^6 + zet^5 + zet^4 + zet^3 + zet^2 + zet +

[sage-support] Re: How to run Macaulay2 code through Sage interface

2016-06-02 Thread saad khalid
Not sure if this is helpful: http://doc.sagemath.org/html/en/reference/interfaces/sage/interfaces/macaulay2.html Sage also has some functions that do the same thing as M2 (I believe they run on Singular). For eg, Groebner basis: