6.13.1.1 MPolynomialRing_generic Objects

class MPolynomialRing_generic
MPolynomialRing_generic( base_ring, [n=None], [names=1])

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

base_ring,$  $ characteristic,$  $ gen,$  $ krull_dimension,$  $ ngens

Further documentation:

characteristic( )

Return the characteristic of this polynomial ring.

sage: R = PolynomialRing(RationalField(),3)
sage: R.characteristic()
0
sage: R = PolynomialRing(GF(7),20)
sage: R.characteristic()
7

Instances of class MPolynomialRing_generic also have the following special methods:

__repr__,$  $ _latex_,$  $ _monomial_order_function

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