Reference index · List of Tcl commands

get_primitive_poly

Name

get_primitive_poly - Get primitive poly for the specified prime power Galois field.

Synopsis

get_primitive_poly ?-gf gf?

Description

get_primitive_poly returns the characteristic irreducible polynomial that has been used to create the specified prime power Galois field. If $p is some prime polynomial and $gf is a field created using set gf [gfpp $p] command, get_primitive_poly $gf will return $p.

Options

-gf gf

Galois field (Java reflection object), optional. Prime power Galois field. If the parameter is omitted, the field previously set by set_default_gf is used.

Returns

Polynomial (Java reflection object).

Examples

get_primitive_poly -gf 8

Displays the default polynomial, used to create GF(8), which is x3 + x + 1.