Jump to content

Numerical integration/Gauss-Legendre Quadrature: Difference between revisions

Adjust epsilon
(x != x1 is definitely a no-no and not well behaved on some systems)
(Adjust epsilon)
Line 123:
x1 = x;
x -= lege_eval(N, x) / lege_diff(N, x);
} while ( fdim( x, x1) > 1e2e-816 );
/* fdim( ) was introduced in C99, if it isn't available
* on your system, try fabs( ) */
Cookies help us deliver our services. By using our services, you agree to our use of cookies.