On Tuesday, May 24, 2016 at 3:37:42 AM UTC+3, Phillip M. Feldman wrote:
>
> I would like to perform operations on polynomials over GF(2), i.e.,
> polynomials with binary coefficients. Is there a way to do this with SymPy?
>
> There is a sympy.polys.galoistools module, but I haven't found any user
> documentation for it
>
galoistools is the low lever implementation module that is not intended for
direct use. The user interface is the
same as with other polynomials. To define a polynomial ring R with
generator (or 'unknown') x over GF(2) you write
R, x = ring('x', GF(2))
Polynomials are then constructed in the usual way: p = x**2 + x , etc. and
all the standard operations are valid. (Note: x is also a polynomial, not
a Symbol.)
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/7895ce42-a158-4682-8590-4208c16580a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.