Evaluates a uniform polynomial of one variable at the value X.
function Poly(const X: Extended; const Coefficients: array of Double): Extended;
Extended Poly(const Extended X, const array of Double Coefficients);
Math
Call Poly to evaluate the polynomial represented by the Coefficients parameter at the point where the variable equals the value of the X parameter. The coefficients are ordered in increasing powers of X, as shown in the following Delphi-like example:
Coefficients[0] + Coefficients[1]*X + ... + Coefficients[N]*(X**N)
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|