Polynoms::PolyRoots Function

void PolyRoots(TVec *Roots, TVec *Coeff);

Finds the roots of the polynomial from the coefficents.

#NameTypeDescription
1RootsTVec *
2CoeffTVec *
Remarks:

Finds the roots of the polynomial from the coefficents. The Coeff holds the coefficients and the result is placed in the Roots.

P(x) = coeff[0] x^n + coeff[1] x^(n-1) + ... + coeff[n] = (x - roots[0]) ... (x - roots[n-1])

n ... order of the polynomial
P(x).. value of the polynomial evaluated at x.

The Length and Complex property of the Roots parameter are set automatically. The inverse to this routine is Polynoms::PolyCoeff Roots are computed by finding the eigenvalues of the companion matrix.

See Also: Polynoms::PolyCoeff
Declared in Dew::Math::Units::Polynoms · Dew.Math/Units.Polynoms.h · Cross-compiler