Skip to content

scijs/legendre-poly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

legendre-poly

Returns the coefficients of the nth Legendre polynomial.

build status

Example

var legendre_p = require("legendre-poly")

console.log(legendre_p(0))
console.log(legendre_p(1))
console.log(legendre_p(2))

Output

[1]
[0, 1]
[-0.5, 0, 1.5]

Install

Install using npm:

npm install legendre-poly

API

require("legendre-poly")(n)

Returns the coefficients of the nth Legendre polynomial in ascending degree.

License

(c) 2013 Mikola Lysenko. MIT License

About

Coefficients of Legendre polynomials

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published