| 1 | initial version |
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:
What module do I need to import in my
.pyfile so that the above syntax works as expected?
I guess I don't know this answer, but maybe a workaround: The .< > notation is a shortcut for
R = PolynomialRing(ZZ,2,'z1,z2')
(z1,z2) = R.gens()
and the latter works when loaded from a .py file.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.