Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unable to use Macaulay2 interface of sage in .sage file

I am doing some calculations in sage using Macaulay2 interface. While runing the Macaulay2 interface in .sage file, I am getting the following error:

NameError: name 'macaulay2' is not defined

My code is correct. In fact, it is working in jupyter notebook and in sage terminal.

Can anyone help me in this regard?

Unable to use Macaulay2 interface of sage in .sage file

I am doing some calculations in sage using Macaulay2 interface. While runing the Macaulay2 interface in .sage file, I am getting the following error:

NameError: name 'macaulay2' is not defined

For example, consider the following:

R = macaulay2.ring('QQ', '[x]');

I = macaulay2.ideal(x)

n = macaulay2.res(I)

print(n)

My code is commands are correct. In fact, it is these are working in jupyter notebook and in sage terminal.

Can anyone help me in this regard?