Communications Toolbox    
gfminpol

Find the minimal polynomial of an element of a Galois field

Syntax

Description

pol = gfminpol(k,m) finds the minimal polynomial of over GF(2), where is a root of the default primitive polynomial for GF(2m). m is an integer greater than one. The format of the output is listed below:

pol = gfminpol(k,primpoly) is the same as the first syntax listed, except that is a root of the primitive polynomial for GF(2m) specified by primpoly. primpoly is a row vector that gives the coefficients of the degree-m primitive polynomial in order of ascending powers.

pol = gfminpol(k,m,p) is the same as the first syntax listed, except that 2 is replaced by a prime number p.

pol = gfminpol(k,primpoly,p) is the same as the first syntax listed, except that 2 is replaced by a prime number p, and that is a root of the primitive polynomial for GF(pm) specified by primpoly. primpoly is a row vector that gives the coefficients of the degree-m primitive polynomial in order of ascending powers.

Examples

The syntax gfminpol(k,m,p) is used in the sample code in the section Characterization of Polynomials.

As another example, the code below determines which elements of GF(24) are also in GF(22), by considering the degrees of their minimal polynomials.

The output is below.

See Also
gfprimdf, gfcosets, gfroots


 gflineq gfmul