scipy.special.jnp_zeros¶
- scipy.special.jnp_zeros(n, nt)[源代码]¶
计算整数阶贝塞尔函数导数Jn‘的零点。
计算 nt 函数的零点 \(J_n'(x)\) 在区间上 \((0, \infty)\) 。这些零按升序返回。请注意,此间隔不包括位于 \(x = 0\) 它的存在是为了 \(n > 1\) 。
- 参数
- n集成
贝塞尔函数的阶数
- nt集成
要返回的零数
- 退货
- ndarray
第一 nt 贝塞尔函数的零点。
参考文献
- 1
张善杰和金建明。“特殊函数的计算”,约翰·威利父子出版社,1996年,第5章。https://people.sc.fsu.edu/~jburkardt/f77_src/special_functions/special_functions.html。
示例
>>> import scipy.special as sc
我们可以通过计算零的值来检查我们是否得到了它们的近似值
jvp
。>>> n = 2 >>> x = sc.jnp_zeros(n, 3) >>> x array([3.05423693, 6.70613319, 9.96946782]) >>> sc.jvp(n, x) array([ 2.77555756e-17, 2.08166817e-16, -3.01841885e-16])
请注意,位于的零
x = 0
为n > 1
不包括在内。>>> sc.jvp(n, 0) 0.0