27 void simpson(
double* xi,
double* yi,
int npts) {
28 double tc = 0.0, ti, tm, ysav;
33 while (i < npts - 1) {
36 ti = (xi[i] - xi[i - 1]) * (ysav + yi[i]) / 2.0;
39 ti = (xi[i + 1] - xi[i - 1]) * (ysav + 4 * yi[i] + yi[i + 1]) / 6.0;
49 ti = (xi[i] - xi[i - 1]) * (yi[i] + ysav) / 2.0;
This file contains function prototypes and constant definitions internally used in EVSL...
Defs for blaslapack routines.
void simpson(double *xi, double *yi, int npts)