10 <<
"gauss_legendre_integral: numerical precision must be positive\n";
14 const unsigned int m = (
samples + 1) / 2;
18 for (
unsigned int i = 0;
i <
m; ++
i) {
27 p1 = ((2.0 *
j + 1.0) * z *
p2 -
j *
p3) / (
j + 1.0);
35 w[
i] = 2.0 / ((1.0 - zSqr) *
pp *
pp);
Cos< T >::type cos(const T &t)
GaussLegendreIntegrator()
static const double w[12]
static const double x[12]