Reference index · List of Tcl commands

gfpp

Name

gfpp - Create prime power Galois field for the specified primitive polynomial.

Synopsis

gfpp polynomial

Description

The characteristic of the Galois field is determined by the characteristic of prime field used to create the polynomial and the degree of the polynomial, i.e. anxn + ... + a1x + a0 over GF(p) will create GF(pn). Both prime Galois field and polynomial degree can be specified when creating the polynomial using poly command.

You can use is_prime_poly and is_primitive_poly to check if the polynomial can be used to create a field. list_prime_polys lists all prime polynomials of the given degree for the specified prime Galois field.

Options

polynomial

Polynomial (Java reflection object). Irreducible polynomial over GF prime. Polynomial can be created using poly command.

Returns

Galois field (Java reflection object).

Examples

gfpp [poly -gf [gf 2] {1101} ]

Creates GF(23 = 8) with primitive polynomial x3 + x2 + 1.