Polynomial roots - MATLAB roots
www.mathworks.com › help › matlabInput p is a vector containing n+1 polynomial coefficients, starting with the coefficient of x n. A coefficient of 0 indicates an intermediate power that is not present in the equation. For example, p = [3 2 -2] represents the polynomial 3 x 2 + 2 x − 2. The roots function solves polynomial equations of the form p 1 x n +... + p n x + p n + 1 = 0. Polynomial equations contain a single variable with nonnegative exponents.