## File: Polynomial-Evaluation.html

package info (click to toggle)
gsl-ref-html 2.3-1
• area: non-free
• in suites: bullseye, buster, sid
• size: 6,876 kB
• ctags: 4,574
• sloc: makefile: 35
 file content (106 lines) | stat: -rw-r--r-- 5,588 bytes parent folder | download
 `123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106` `````` GNU Scientific Library – Reference Manual: Polynomial Evaluation

6.1 Polynomial Evaluation

The functions described here evaluate the polynomial P(x) = 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.

Function: int gsl_poly_eval_derivs (const double c[], const size_t lenc, const double x, double res[], const size_t lenres)

This function evaluates a polynomial and its derivatives storing the results in the array res of size lenres. The output array contains the values of d^k P/d x^k for the specified value of x starting with k = 0.

``````