Returns the coefficients of the nth Legendre polynomial.
var legendre_p = require("legendre-poly")
console.log(legendre_p(0))
console.log(legendre_p(1))
console.log(legendre_p(2))
[1]
[0, 1]
[-0.5, 0, 1.5]
Install using npm:
npm install legendre-poly
Returns the coefficients of the nth Legendre polynomial in ascending degree.
(c) 2013 Mikola Lysenko. MIT License