Numerical integration/Gauss-Legendre Quadrature: Difference between revisions

m
fix bare lang tag
(Go solution)
m (fix bare lang tag)
Line 128:
lege_inte(exp, -3, 3), exp(3) - exp(-3));
return 0;
}</lang>output:<lang>Roots: 0.90618 0.538469 0 -0.538469 -0.90618
<pre>Roots: 0.90618 0.538469 0 -0.538469 -0.90618
Weight: 0.236927 0.478629 0.568889 0.478629 0.236927
integrating Exp(x) over [-3, 3]:
20.03557772,
compred to actual
20.03574985</langpre>
 
=={{header|Common Lisp}}==