gfroots
Find roots of polynomial over prime Galois field
Syntax
Description
finds roots of the polynomial represented by rt = gfroots(f,m,p)f. rt
is a column vector each of whose entries is the exponential format of a root. The
exponential format is relative to a root of the default primitive polynomial for
GF(pm).
Note
This function performs computations in
GF(pm), where p is prime. To work in
GF(2m), use the
roots function with Galois arrays. For details, see Roots of Polynomials. gfroots lists each root exactly
once, ignoring multiplicities of roots.
finds roots in GF(rt = gfroots(f,prim_poly,p)pm) finds roots of a
polynomial f using the degree-m primitive polynomial,
prim_poly.of the polynomial that f represents.
rt is a column vector each of whose entries is the exponential format
of a root. The exponential format is relative to a root of the degree-m primitive polynomial
for GF(pm) that prim_poly
represents.
[
returns additional matrices rt,rt_tuple,field] = gfroots(...)rt_tuple and field.
rt_tuple is described in the preceding paragraph.
field gives the list of elements of the extension field. The list of
elements, the polynomial format, and the exponential format are all relative to the same
primitive element.
Note
For a description of the various formats that gfroots uses, see
Representing Elements of Galois Fields.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a