 Several researchers have developed algorithms for computing Gauss-Legendre quadrature nodes and weights based on the Newton-Raphson Method for finding roots of functions.Various optimizations for this specific problem are used.For instance, some methods compute formula_7 to avoid issues associated with clustering of the roots formula_8 near the ends of the interval formula_9 and formula_10 .