You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: legendre.go
    path of file: ./repos/gonum/integrate/quad
    
    the code of the file until where you have to start completion: // Copyright ©2015 The Gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package quad

import "math"

// Legendre integrates an unweighted function over finite bounds
//
//	int_min^max f(x) dx
type Legendre struct{}

func (l Legendre) FixedLocations(x, weight []float64, min, max float64) {
	// References:
	// Algorithm:
	// Bogaert, Ignace. "Iteration-Free Computation of Gauss--Legendre
	// Quadrature Nodes and Weights." SIAM Journal on Scientific Computing
	// 36.3 (2014): A1008-A1026.
	//
	// Excellent review article:
	// Townsend, Alex. "The race for high ord
    
func (l Legendre) FixedLocations(x, weight []float64, min, max float64) {
	// References:
	// Algorithm:
	// Bogaert, Ignace. "Iteration-Free Computation of Gauss--Legendre
	// Quadrature Nodes and Weights." SIAM Journal on Scientific Computing
	// 36.3 (2014): A1008-A1026.
	//
	// Excellent review article:
	// Townsend, Alex. "The race for high order Gauss–Legendre quadrature."
	// http://math.mit.edu/~ajt/papers/QuadratureEssay.pdf
	//
	// Original C++ source code: http://sourceforge.net/projects/fastgausslegendrequadrature

	if len(x) != len(weight) {
		panic("legendre: slice length mismatch")
	}
	if min >= max {
		panic("legendre: min >= max")
	}
	if math.IsInf(min, 0) || math.IsInf(max, 0) {
		panic("legendre: infinite bound")
	}
	for i := range x {
		x[i], weight[i] = l.boundedLocation(len(x), i, min, max)
	}
}