2

I'm working on transformation polynomial systems over GF(2^N) to GF(2). In a process of transformation I need to do lots of modulo 2 computations like summing and multiplying matrices.

So is there way to sum and multiply matrices using modulo 2 arithmetics in Sympy?

Tikhon Belousko
  • 767
  • 1
  • 9
  • 26

1 Answers1

2

I've had luck with sympy's trunc() function:

from sympy import *
var('x:z')
y=25*x+12
z=trunc(y,2) # z=x