XLPack 7.0
XLPack Numerical Library (C API) Reference Manual
Loading...
Searching...
No Matches

◆ polcof()

void polcof ( double  xx,
int  n,
double  x[],
double  c[],
double  d[],
double  work[] 
)

Coefficients of polynomial interpolation

Purpose
This routine computes the coefficients of the polynomial fit produced by a previous call to polint.
Parameters
[in]xxThe point about which the Taylor expansion is to be made.
[in]nThe number of data points (must remain unchanged between the call to polint and the call to polcof).
[in]x[]Array x[lx] (lx >= n)
The array of abscissas (must remain unchanged between the call to polint and the call to polcof).
[out]c[]Array c[lc] (lc >= n)
An array of information produced by subroutines polint (must remain unchanged between the call to polint and the call to polcof).
[out]d[]Array d[ld] (ld >= n)
The array of coefficients for the Taylor expansion about xx.
p(z) = d[0] + d[1]*(z - xx) +d[2]*((z - xx)^2) + ... + d[n-1]*((z - xx)^(n-1))
[out]work[]Array work[lwork] (lwork >= 2*n)
Work array.
Reference
SLATEC