Communications Toolbox    
gfdeconv

Divide polynomials over a Galois field

Syntax

Description

The gfdeconv function divides polynomials over a Galois field. (To divide elements of a Galois field, use gfdiv instead.) Algebraically, dividing polynomials over a Galois field is equivalent to deconvolving vectors containing the polynomials' coefficients, where the deconvolution operation uses arithmetic over the same Galois field.

[quot,remd] = gfdeconv(b,a,p) divides the polynomial b by the polynomial a over GF(p) and returns the quotient in quot and the remainder in remd. p is a prime number. b, a, quot, and remd are row vectors that give the coefficients of the corresponding polynomials in order of ascending powers. Each coefficient is between 0 and p-1.

[quot,remd] = gfdeconv(b,a,field) divides the polynomial b by the polynomial a over GF(pm) and returns the quotient in quot and the remainder in remd. Here p is a prime number and m is a positive integer. b, a, quot, and remd are row vectors that list the exponential formats of the coefficients of the corresponding polynomials, in order of ascending powers. The exponential format is relative to some primitive element of GF(pm). field is the matrix listing all elements of GF(pm), arranged relative to the same primitive element. See Representing Elements of Galois Fields for an explanation of these formats.

Examples

The code below shows that

in GF(3). It also checks the results of the division.

The output is below.

Working over GF(3), the code below outputs those polynomials of the form xk - 1 (k = 2, 3, 4,..., 8) that 1 + x2 divides evenly.

The output is below.

In light of the discussion in Algorithm on the reference page for gfprimck along with the irreducibility of 1 + x2 over GF(3), this output indicates that 1 + x2 is not primitive for GF(9).

Algorithm

The algorithm of gfdeconv is similar to that of the MATLAB function deconv.

See Also
gfconv, gfadd, gfsub, gfdiv, gftuple


  gfcosets gfdiv