Next: , Up: Polynomials


6.1 Polynomial Evaluation

The functions described here evaluate the polynomial c[0] + c[1] x + c[2] x^2 + \dots + c[len-1] x^{len-1} using Horner's method for stability. Inline versions of these functions are used when HAVE_INLINE is defined.

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

This function evaluates a polynomial with real coefficients for the real variable x.

— Function: gsl_complex gsl_poly_complex_eval (const double c[], const int len, const gsl_complex z)

This function evaluates a polynomial with real coefficients for the complex variable z.

— Function: gsl_complex gsl_complex_poly_complex_eval (const gsl_complex c[], const int len, const gsl_complex z)

This function evaluates a polynomial with complex coefficients for the complex variable z.


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