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
.py
file 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.