<< Fields Fields gf_check_field >>

Galois Fields >> Galois Fields > Fields > gf_characteristic

gf_characteristic

Characteristic of a finite field

Syntax

p = gf_characteristic(F)

Arguments

F

A field created by gf_create_field.

p

The characteristic: the prime p of GF(p^n).

Description

gf_characteristic(F) returns the prime p such that F is GF(p^n). Adding any element to itself p times gives zero.

Examples

F = gf_create_field(3, 2);
gf_characteristic(F)   // 3

See also

History

VersionDescription
2.0.0

Refactoring of the function/toolbox.


Report an issue
<< Fields Fields gf_check_field >>