Ask Your Question

ae's profile - activity

2017-12-09 19:13:36 +0200 received badge  Student (source)
2014-06-29 04:41:49 +0200 received badge  Popular Question (source)
2014-06-29 04:41:49 +0200 received badge  Notable Question (source)
2014-06-29 04:41:49 +0200 received badge  Famous Question (source)
2010-08-19 11:41:02 +0200 asked a question File imports for polynomial rings in sage

If i type in the following

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

direclty to Sage 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 hence which command do i need to make Sage accept this ring.