powered by
Convert polynomial to integer in <code>0..q-1</code>
poly2int(p, n, poly)
an integer
modulus
the length of poly
the polynomial vector
gf <- create_galois_field(4) stopifnot(poly2int(gf$p, gf$n, c(0, 0)) == 0)
Run the code above in your browser using DataLab