poly_sum | R Documentation |
Addition in polynomial representation
poly_sum(p, n, p1, p2)
p |
modulus |
n |
length of polynomial 1 and 2 |
p1 |
polynomial vector 1 |
p2 |
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)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.