Photo by Al Soot on Unsplash

Lattice, Polynomials … and NumPy

Prof Bill Buchanan OBE
May 16 · 5 min read

There’s one library in Python that probably makes Python the language of choice, and the reason it is so popular: NumPy. If you deal with numbers, the mighty Numpy library is there to help you. So let’s look at polynomials and the mod operator, and which are used in lattice cryptography.

In with polynomials, for an order of five, we have the form: