File: besseli.py

package info (click to toggle)
mpmath 0.19-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,324 kB
  • ctags: 2,850
  • sloc: python: 44,052; makefile: 44; sh: 4
file content (6 lines) | stat: -rw-r--r-- 208 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
# Modified Bessel function I_n(x) on the real line for n=0,1,2,3
i0 = lambda x: besseli(0,x)
i1 = lambda x: besseli(1,x)
i2 = lambda x: besseli(2,x)
i3 = lambda x: besseli(3,x)
plot([i0,i1,i2,i3],[0,5],[0,5])