Differential operator for polynomials
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.
f is a polynomial in the indeterminates
polylib::Dpoly([i1,..,ik], f) computes the k-th
polylib::Dpoly(f) returns the derivative
f with respect to its only variable for an univariate
If some element of
indexlist is greater than
the number of indeterminates of
f, the zero polynomial
polylib::Dpoly(, p) returns
If the coefficients of the polynomial are elements of a domain
then this domain must have the method
that must calculate the integer multiple of a domain element
a positive integer
We differentiate a univariate polynomial with respect to its only indeterminate. In this case, we may leave out the first argument.
polylib::Dpoly(poly(2*x^2 + x + 1));
Now we differentiate a bivariate polynomial, and must specify the indeterminate in this case.
polylib::Dpoly(, poly(x^2*y + 3*x + y, [x, y]));
It is also possible to compute second or higher partial derivatives.
polylib::Dpoly([1, 2], poly(x^2*y + 3*x + y, [x, y]));
List of positive integers
polylib::Dpoly returns a polynomial in the
same indeterminates and over the same coefficient ring as the input.