root
Represent roots of polynomial
Description
returns a column vector of numbered roots of symbolic polynomial
r
= root(p
,x
)p
with respect to
x
. Symbolically solving a high-degree
polynomial for its roots can be complex and not all polynomials can
be solved analytically. In this case, the Symbolic Math Toolbox™ uses the root
function to
represent the roots of the polynomial.
Examples
Input Arguments
Tips
You can numerically approximate a symbolic expression involving the
root
function by usingvpa
to return variable-precision symbolic numbers. Starting in R2023a, you can convert the expression to a MATLAB® function that can be used without Symbolic Math Toolbox by usingmatlabFunction
. The generated file uses theroots
function that operates on the numericdouble
data type.
Version History
Introduced in R2015b