Anonymous user
Numerical integration/Gauss-Legendre Quadrature: Difference between revisions
Numerical integration/Gauss-Legendre Quadrature (view source)
Revision as of 02:14, 23 August 2018
, 5 years agox != x1 is definitely a no-no and not well behaved on some systems
(x != x1 is definitely a no-no and not well behaved on some systems) |
|||
Line 123:
x1 = x;
x -= lege_eval(N, x) / lege_diff(N, x);
} while (
/* fdim( ) was introduced in C99, if it isn't available
*
lroots[i - 1] = x;
|