Donald E. Amos, "Algorithm 644: A portable package for Bessel
functions of a complex argument and nonnegative order", ACM
TOMS Vol. 12 Issue 3, Sept. 1986, p. 265.
Examples
Plot the function of several orders for real input:
>>> importnumpyasnp>>> fromscipy.specialimportkn>>> importmatplotlib.pyplotasplt>>> x=np.linspace(0,5,1000)>>> forNinrange(6):... plt.plot(x,kn(N,x),label='$K_{}(x)$'.format(N))>>> plt.ylim(0,10)>>> plt.legend()>>> plt.title(r'Modified Bessel function of the second kind $K_n(x)$')>>> plt.show()