R/galois_field.R
poly_sum.Rd
Addition in polynomial representation
poly_sum(p, n, p1, p2)
modulus
length of polynomial 1 and 2
polynomial vector 1
polynomial vector 2
the sum of p1 and p2
gf <- create_galois_field(4) a <- poly_sum(gf$p, gf$n, c(1, 0), c(0, 1)) stopifnot(all(a == c(1, 1)))