|
|
◆ Polyvl()
| Sub Polyvl |
( |
Nder As |
Long, |
|
|
XX As |
Double, |
|
|
Yfit As |
Double, |
|
|
Yp() As |
Double, |
|
|
N As |
Long, |
|
|
X() As |
Double, |
|
|
C() As |
Double, |
|
|
Info As |
Long |
|
) |
| |
Value of polynomial and derivatives
- Purpose
- This routine calculates the value of a polynomial and its first Nder derivatives where the polynomial was produced by a previous call to polint.
- Parameters
-
| [in] | Nder | The number of derivatives to be evaluated. (Nder >= 0) |
| [in] | XX | The argument at which the polynomial and its derivatives are to be evaluated. |
| [out] | Yfit | The value of the polynomial at XX. |
| [out] | Yp() | Array Yp(LYp - 1) (LYp >= Nder)
The derivatives of the polynomial at XX of order 1 to Nder. |
| [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 - 1) (LX >= N)
The array of abscissas (must remain unchanged between the call to Polint and the call to Polcof). |
| [out] | C() | Array C(LC - 1) (LC >= N)
An array of information produced by subroutines Polint (must remain unchanged between the call to Polint and the call to Polcof). |
| [out] | Info | = 0: Successful exit.
= -1: The argument Nder had an illegal value. (Nder < 0)
= -4: The argument Yp() is invalid.
= -5: The argument N had an illegal value. (N < 1)
= -6: The argument X() is invalid.
= -7: The argument C() is invalid. |
- Reference
- SLATEC
- Example Program
- See example of Polint.
|