6.7.1.3 FiniteField_prime_modn Objects

class FiniteField_prime_modn
FiniteField_prime_modn( p, [name=None])

Instances of class FiniteField_prime_modn have the following methods (in addition to inherited methods and special methods):

characteristic,$  $ degree,$  $ gen,$  $ modulus,$  $ order,$  $ polynomial

Further documentation:

degree( )

Returns the degree of the finite field, which is a positive integer.

sage: FiniteField(3).degree()
1
sage: FiniteField(3**20).degree()
20

Instances of class FiniteField_prime_modn also have the following special methods:

__repr__

See About this document... for information on suggesting changes.