polyrootsreal

Real roots of a polynomial.

Syntax

polyrootsreal(coeffs )

Argument

coeffs
The polynomial coefficients.

Example

Templex Expression Results
{polyrootsreal({-6, 11, -6, 1})} 1,2,3

Comments

The result is a vector containing the real roots of the polynomial specified by cooeffs. If coeffs has N elements, the result has N-1 elements. The coefficients are ordered from 0th order to Nth order. The last element in coeffs must be non-zero.