X-list of variables by decreasing orderU-set of parameters (optional)p-positive prime integer (optional)

<Text-field style="Heading 2" layout="Heading 2" bookmark="info">Description</Text-field>The function call PolynomialRing(X,U,p) creates a data structure representing the ring NiNJIlJHNiI= of polynomials with variables in X and coefficients in the field K defined as follows. If NiMvSSJwRzYiIiIh then K is the field of rational functions with variables in U and with coefficients in the field NiNJIlFHNiI= of rational numbers. If NiMwSSJwRzYiIiIh then it must be a prime and K is the field of rational functions with variables in U and with coefficients in the prime field NiMmSSJGRzYiNiNJInBHRiU= of characteristic NiNJInBHNiI=. If U is empty, then K is simply NiNJIlFHNiI= or NiMmSSJGRzYiNiNJInBHRiU= depending whether NiNJInBHNiI= is zero or not.If U is omitted, then U is assumed to be the empty set.If p is omitted, then p is assumed to be NiMiIiE=.The elements of R are multivariate polynomials with multivariate rational functions as coefficients. However, internally, the RegularChains package clears up denominators as often as possible. This is why the results provided by the RegularChains package are generally polynomials without any fractions. But this is not always possible. For instance, the operation NormalForm often needs to introduce fractions in its results.In the description of all the other functions of the RegularChains library, we shall call a polynomial ring the output of a function call to PolynomialRing.In the polynomial ring returned by PolynomialRing(X,U,p) the elements of X are called the variables, those of U are the parameters and p is called the characteristic.Typically, but not always, the variables are the unknowns of some system of equations, inequations and inequalities. whereas the parameters do not satisfy any constraints.The command DisplayPolynomialRing returns the contents of a polynomial_ring data structure, that is, its list of variables, its list of parameters and its characteristic.This command is part of the RegularChains package, so it can be used in the form PolynomialRing(..) only after executing the command with(RegularChains). However, it can always be accessed through the long form of the command by using RegularChains[PolynomialRing](..).
<Text-field style="Heading 2" layout="Heading 2" bookmark="examples">Examples</Text-field>with(RegularChains):R := PolynomialRing([x, y, z]);DisplayPolynomialRing(R);R := PolynomialRing([x, y, z], 5);DisplayPolynomialRing(R);R := PolynomialRing([x, y, z],{a, b, c});DisplayPolynomialRing(R);R := PolynomialRing([x, y, z],{a, b, c}, 5);DisplayPolynomialRing(R);See AlsoDisplayPolynomialRingRegularChains