degree#
Find the degree of a polynomial.
Available in: math cells, REPL.
Syntax#
degree(expression, variable)
Arguments and behavior#
The degree is the highest power of the variable that appears. The example returns scalar (number).
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
degree("x^3+1", "x")Interactive examples could not load. You can still copy the expressions.
Expected result: 3.