Comment #1 on issue 2032 by mattpap: Ability to work with K[x, 1/x] in Polys
http://code.google.com/p/sympy/issues/detail?id=2032
You can work with generators like (z, 1/z), e.g.:
In [1]: Poly(1/z + z)
Out[1]: Poly(z + 1/z, z, 1/z, domain='ZZ')
Remember that Poly expands input expressions by default (the only
exception, after recent changes, is factor()). So, it you want to make poly
out of [33] with 1/z as generator, then you get a poly of degree zero (a
constant in ZZ(x, y, z)), of course assuming that 1/z and z are unrelated
(so really we should look at 1/z as some dummy unrelated variable). If you
make poly out of [34] with 1/z as generator, then the result is the same.
Use expand=False in Poly to stop automatic expansion and get poly of degree
one. However, you can't create poly out of [33] because with z as
generator, because z is in the denominator. However, with expand=False,
[34] is a polynomial in both 1/z and z.
So, this is possible, but don't expect miracles without proper
preprocessing of expressions and configuring Poly.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.