Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

File imports for polynomial rings in sage

If i type in the following R.<z1,z2>=PolynomialRing(GF(5),2,"z") direclty to sgae it accepts it as a polynomial ring But if i place this in a .py file and load it from this sage eg sage my.py it gives me a syntax error I guess i need a module loaded for it to be detected, but which module and hance which command do i need to make sage accept this ring

File imports for polynomial rings in sage

If i type in the following following

R.<z1,z2>=PolynomialRing(GF(5),2,"z")
R.<z1,z2> = PolynomialRing(GF(5),2,"z")

direclty to sgae Sage it accepts it as a polynomial ring ring. But if i place this in a .py file and load it from this sage Sage eg sage my.py my.py it gives me a syntax error error. I guess i need a module loaded for it to be detected, but which module and hance hence which command do i need to make sage Sage accept this ringring.