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

Evaluate a polynomial.

Pascal
procedure PolyEval(Val: TVec; Coeff: TVec; R: TMtx; DegFreedom: Integer; L2R: double; Results: TVec; Delta: TVec); overload;
Parameters 
Description 
Val 
Stores values doe which the polynomial will be evaluated (x values). 
Coeff 
Stores polynomial coefficients for which the polynomial will be evaaluted. 
Returns the Cholesky factor of the Vandermonde matrix. 
DegFreedom 
Returns the residuals degree of freedom. 
L2R 
Returns the L2 norm of the residuals. 
Results 
Returns the results P(x), evaluated at Val. 
Delta 
Returns the error estimates for Results. 

Evaluate a polynomial with coefficients Coeff at value Val. The order of polynomial (N) is determined as: N := Coeff.Length - 1. The algorithm employed uses Horners rule. The following formula is used to evaluate the polynomial: 

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

To estimate the error of polynomial interpolation after a call to PolyFit additional parameters have to be passed to the routine.

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