5.1 Interface

class CoeffInterface( type, systemType, parametr=None, modularShort=None)
Specifies operations over coefficients.
type:
string that defines the type of coefficients

Value of type Coefficient type
"GmpQ" rational numbers on the basis of the GMP library
"GmpZ" integer numbers on the basis of the GMP library
"ModularShort" numbers modulo prime number under the condition machine word
"OneParametrModularShort" polynomial arithmetics with one-parametric coefficients and integers modulo prime number under the condition machine word
"TwoParametrModularShort" polynomial arithmetics with two-parametric coefficients and integers modulo prime number under the condition machine word
"OneParametrGmpZ" polynomial arithmetics with one-parametric coefficients over the ring on the basis of the GMP library
"TwoParametrGmpZ" polynomial arithmetics with two-parametric coefficients over the ring on the basis of the GMP library

systemType:
specifies type of a system (see 3)

parametr:
list of parameters for parametric coefficients

modularShort:
prime number satisfying machine word for the modular coefficients

The class CoeffInterface contains the following methods:

type( )
returns the string specifying the type of a coefficient.

isField( )
returns True if the polynomial coefficients form a field, otherwise returns False.

isPseudo( )
returns True if the polynomial coefficients form a ring, otherwise returns False.

parametr( )
returns the list of parameters