|
|
◆ 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] | xx | The point about which the Taylor expansion is to be made. |
| [in] | n | The 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
|