R/galois_field.R
poly_prod.Rd
Multiplication in polynomial representation
poly_prod(p, n, xton, p1, p2)
modulus
length of polynomials
characteristic polynomial vector for the field (x to the n power)
polynomial vector 1
polynomial vector 2
the product of p1 and p2
gf <- create_galois_field(4) a <- poly_prod(gf$p, gf$n, gf$xton, c(1, 0), c(0, 1)) stopifnot(all(a == c(0, 1)))