gfpoly.div: Polynomial division defined on GF(s) with a prime s

View source: R/estsh.R

gfpoly.divR Documentation

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

Description

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

Usage

gfpoly.div(f1, f2, s)

Arguments

f1

a vector represents the coefficients of the dividend 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 dividend 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(2,0,1,1) represents 2x^3+x+1.

Examples

gfpoly.div(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.div in ShapDoE...