File: laguerre.py

package info (click to toggle)
mpmath 1.4.0~a6-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,556 kB
  • sloc: python: 47,434; makefile: 22
file content (7 lines) | stat: -rw-r--r-- 256 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
# Hermite polynomials L_n(x) on the real line for n=0,1,2,3,4
f0 = lambda x: laguerre(0,0,x)
f1 = lambda x: laguerre(1,0,x)
f2 = lambda x: laguerre(2,0,x)
f3 = lambda x: laguerre(3,0,x)
f4 = lambda x: laguerre(4,0,x)
plot([f0,f1,f2,f3,f4],[0,10],[-10,10])