The S-polynomial of two polynomials
MuPAD® notebooks will be removed in a future release. 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.
groebner::spoly(p1, p2) computes the S-polynomial
of the polynomials
The rules laid down in the introduction to groebner concerning the polynomial types and the ordering apply.
The polynomials must be of the same type. In particular, do
not mix polynomials created via
poly and polynomial expressions!
p1 := poly(x^2 - x + 2*y^2, [x, y]): p2 := poly(x + 2*y - 1, [x, y]):
generate the following S-polynomial with respect to lexicographical ordering:
groebner::spoly(p1, p2, LexOrder)
delete p1, p2:
A list or set of polynomials or polynomial expressions of the same type. The coefficients in these polynomials and polynomial expressions can be arbitrary arithmetical expressions.
One of the identifiers
Polynomial of the same type as the input polynomials. If polynomial expressions are used as input, then a polynomial expression is returned.
The S-polynomial of two polynomials p1, p2 is defined to be