function gaussLegreQuadrature( ww, aii, bii, r, a, b, n ) {
	var wsum = 0.0;
	var c = ( b - a ) * 0.5;
	var d = ( b + a ) * 0.5;
	var j;
	for ( j = 0; j < n; j++ ) {
		if ( ROOT[j] === 0.0 ) {
			wsum += WEIGHT[j] * fint( ww, d, aii, bii, r );
		} else {
			wsum += WEIGHT[j] * ( fint( ww, ( ROOT[j]*c ) + d, aii, bii, r ) );
		}
	}
	return c * wsum;
}
Evaluates the Gauss-Legendre quadrature rule.

@private
@param {number} ww - quadrature point
@param {number} aii - integral bound
@param {number} bii - integral bound
@param {number} r - relative error tolerance
@param {number} a - lower bound of integration
@param {number} b - upper bound of integration
@param {number} n - number of quadrature points
@returns {number} integral value