gfpoly.add: Polynomial additive defined on GF(s) with a prime s

View source: R/estsh.R

gfpoly.addR Documentation

Polynomial additive defined on GF(s) with a prime s

Description

Polynomial additive defined on GF(s) with a prime s

Usage

gfpoly.add(f1, f2, s)

Arguments

f1

a vector represents the coefficients of the first addend polynomial. For example, if the dividend is x^5+2x^3+1, then f1=c(1,0,2,0,0,1).

f2

a vector represents the coefficients of the second addend polynomial. For example, if the divisor is x^4+2, then f2=c(1,0,0,0,2).

s

a prime, the order of the Galois filed (GF).

Value

a vector represents the coefficients of the resulting polynomial. For example, the result c(1, 1, 2, 0, 0, 0) represents x^5+x^4+2x^3.

Examples

gfpoly.add(c(1,0,2,0,0,1),c(1,0,0,0,2),3)

ShapDoE documentation built on May 29, 2024, 11:24 a.m.

Related to gfpoly.add in ShapDoE...