You are here: Symbol Reference > Polynoms Namespace > Functions > Polynoms.PolyCoeff Function
MtxVec VCL
ContentsIndex
PreviousUpNext
Polynoms.PolyCoeff Function

Converts polynomial roots to coefficients.

Pascal
procedure PolyCoeff(Roots: TVec; Coeff: TVec); overload;

The PolyCoeff procedure converts polynomial roots to coefficients. The following scheme is used to construct a coefficients from 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

 

The length and complex property of the Coeff object are set automatically. The inverse to this routine is PolyRoots

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!