Coefficient ring of a polynomial
MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.
MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.
polylib::coeffRing(p) returns the coefficient
polylib::coeffRing(p) allows to query in
a uniform way the coefficient ring of the polynomial
the polynomial domain
P can also be of the form
IntMod(n), then the corresponding domains
Dom::IntegerMod(p) is returned.
the details about
p can be a kernel polynomial (
or an element of one of the above domains
We define a polynomial ring over the ring of integers modulo 4, and query for its coefficient ring:
P := Dom::UnivariatePolynomial(x, Dom::IntegerMod(4)): polylib::coeffRing(P)
The coefficient ring of the elements of this domain can be queried the same way:
When no coefficient ring is specified,
poly currently constructs kernel polynomials
over the fake domain Expr instead of the mathematically equivalent
Dom::ExpressionField() of arbitrary expression
(this happens to be more efficient with the current kernels):
This makes it possible to plug the result right away as coefficient ring of some other domain:
A polynomial domain