Legendre Polynomials and Functions