Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the degree of a polynomial in any number of variables
ResourceFunction["PolynomialDegree"][poly,vars] returns the degree of a polynomial in vars. |
Compute the degree of a basic polynomial expression:
| In[1]:= |
| Out[1]= |
Compute the degree of a polynomial in two variables:
| In[2]:= |
| Out[2]= |
The following expression is constant with respect to the variables z, w, u:
| In[3]:= |
| Out[3]= |
The following expression is not a polynomial in x and y:
| In[4]:= |
A constant polynomial has degree 0 but the zero polynomial (even though it is a constant polynomial) does not have a degree (though some authors assign it to have degree -1 or
):
| In[5]:= |
| Out[5]= |
| In[6]:= |
| Out[6]= |
This work is licensed under a Creative Commons Attribution 4.0 International License