Next: , Up: Polynomials


6.1 Polynomial Evaluation

— Function: double gsl_poly_eval (const double c[], const int len, const double x)

This function evaluates the polynomial c[0] + c[1] x + c[2] x^2 + \dots + c[len-1] x^{len-1} using Horner's method for stability. An inline version of this function is used when HAVE_INLINE is defined.


The GNU Scientific Library - a free numerical library licensed under the GNU GPL
Back to the GNU Scientific Library Homepage