Zeroth-order Bessel函数Python

876*_*674 2 python scipy bessel-functions

为这个问题的简单而道歉.

我想在Python中实现一个方程式.在该等式中,K_0是零阶修正贝塞尔函数.

在Python中实现K_0的最佳方法是什么?

DSM*_*DSM 5

无需实施; 它包括在内.请参阅scipy.special模块的文档,特别是这里优化的常用模块:

>>> import scipy.special
>>> print scipy.special.k0.__doc__
k0(x[, out])

y=k0(x) returns the modified Bessel function of the second kind (sometimes called the third kind) of
order 0 at x.
>>> scipy.special.k0(1)
0.42102443824070823
Run Code Online (Sandbox Code Playgroud)

或更一般地说:

>>> print scipy.special.kn.__doc__
kn(x1, x2[, out])

y=kn(n,x) returns the modified Bessel function of the second kind (sometimes called the third kind) for
integer order n at x.
>>> scipy.special.kn(0, 1)
0.42102443824070834
Run Code Online (Sandbox Code Playgroud)