Hi,
I am using the groebner basis, reduce, etc. for working
with polynomials in roots of unity. Eg. If w is a third
root of unity then:
>>> import sympy as sy
>>> w = sy.symbols("w")
>>> p = w**2 + w + 1
>>> basis = sy.groebner([p])
now we can work out polynomials in w:
>>> q = w**5 + w + 2
>>> _, q = basis.reduce(q)
>>> q
1
(And this generalizes to polynomials with multiple different
roots of unity.)
Ok, so this is all very cool, I finally found a use for
groebner bases, but it occurs to me that there might be a simpler
way of achieving this?
Simon.
--
You received this message because you are subscribed to the Google Groups
"sympy" 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?hl=en.