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
rootfunction by usingvpato 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 therootsfunction that operates on the numericdoubledata type.
Version History
Introduced in R2015b