sym_degree

Symbolic

Return the highest power of a variable in a polynomial expression.

Syntax

sym_degree(expr, var)

Examples

sym_degree('x^3 + 2*x + 1', 'x')
▶ Run
sym_degree('a*t^5 + t^2', 't')
▶ Run

See Also

Try SimLab — Free MATLAB® Alternative

466 functions. Runs in your browser. No install.

Open SimLab

Stay Updated

Get notified about new simulations and tools. We send 1-2 emails per month.