Equations and systems solver - MATLAB solve
www.mathworks.com › help › symbolicSolve Polynomial and Return Real Solutions Solve a fifth-degree polynomial. It has five solutions. syms x eqn = x^5 == 3125; S = solve (eqn,x) S = Return only real solutions by setting 'Real' option to true. The only real solutions of this equation is 5. S = solve (eqn,x, 'Real' ,true) S = Numerically Solve Equations
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.