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

◆ ppqad()

void ppqad ( int  ldc,
double  c[],
double  xi[],
int  lxi,
int  k,
double  x1,
double  x2,
double *  pquad,
int *  info 
)

Integral of PP (piecewise polynomial) form of B-spline

Purpose
This routine computes the integral on [x1, x2] of a k-th order B-spline using the piecewise polynomial representation (c[][], xi[], lxi, k). Here the Taylor expansion about the left end point xi[j-1] of the j-th interval is integrated and evaluated on subintervals of [x1, x2] which are formed by included break points. Integration outside [xi[0], xi[lxi]] is permitted.
Parameters
[in]ldcLeading dimension of the two dimensional array c[][] (ldc >= k)
[in]c[][]Array c[lc][ldc] (lc >= lxi)
Right derivatives at break points.
[in]xi[]Array xi[l_xi] (l_xi >= lxi + 1)
Break points.
[in]lxiNumber of polynomial pieces.
[in]kOrder of B-spline. (k >= 1)
[in]x1Lower end point of quadrature interval. (Normally xi[0] <= x1 <= xi[lxi])
[in]x2Upper end point of quadrature interval. (Normally xi[0] <= x2 <= xi[lxi])
[out]pquadIntegral of the B-spline over [x1, x2].
[out]info= 0: Successful exit
= -1: The argument ldc had an illegal value (ldc < k)
= -4: The argument lxi had an illegal value (lxi < 1)
= -5: The argument k had an illegal value (k < 1)
Reference
SLATEC