File: besselk.py

package info (click to toggle)
mpmath 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,344 kB
  • sloc: python: 45,321; makefile: 10
file content (6 lines) | stat: -rw-r--r-- 221 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
# Modified Bessel function of 2nd kind K_n(x) on the real line for n=0,1,2,3
k0 = lambda x: besselk(0,x)
k1 = lambda x: besselk(1,x)
k2 = lambda x: besselk(2,x)
k3 = lambda x: besselk(3,x)
plot([k0,k1,k2,k3],[0,8],[0,5])