| 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<="" p=""> |
| I agree, this is hard to read (probably a candidate for "What is broken on this site"). Having said that, I think the question is:
I guess I don't know this answer, but maybe a workaround: The
and the latter works when loaded from a |
| The answer; it is impossible to make the notation: work in a .py file, since .py files must be valid Python, and the above isn't. The workaround by niles above is the way to go.
Oh, to use the PolynomialRing command in a .py file, do
from sage.rings.all import PolynomialRing
William Stein (Aug 19 '10) |
| Could you please edit your question? There are html escaping errors in it. Notice the ampersand gt semicolon? I see the command, but I don't see a question mark or a question in what you originally typed. Thanks.
I tried to edit and get a big traceback -- there my thus be a bug in askbot that prevents editing some posts.
William Stein (Aug 19 '10) |
Asked: Aug 19 '10
Seen: 82 times
Last updated: Aug 19 '10
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.