bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / special / _basic / jn_zeros
function
scipy.special._basic:jn_zeros
source: build-install/usr/lib/python3.14/site-packages/scipy/special/_basic.py:322
Signature
def jn_zeros(n, nt)Summary
Compute zeros of integer-order Bessel functions Jn.
Extended Summary
Compute nt zeros of the Bessel functions on the interval . The zeros are returned in ascending order. Note that this interval excludes the zero at that exists for .
Parameters
n: intOrder of Bessel function
nt: intNumber of zeros to return
Returns
: ndarrayFirst
ntzeros of the Bessel function.
Examples
Compute the first four positive roots of :math:`J_3`.from scipy.special import jn_zeros
✓jn_zeros(3, 4)
✗array([ 6.38 , 9.761, 13.015, 16.223])Plot :math:`J_3` and its first four positive roots. Note that the root located at 0 is not returned by `jn_zeros`.
import numpy as np import matplotlib.pyplot as plt from scipy.special import jn, jn_zeros j3_roots = jn_zeros(3, 4) xmax = 18 xmin = -1 x = np.linspace(xmin, xmax, 500) fig, ax = plt.subplots()✓
ax.plot(x, jn(3, x), label=r'$J_3$') ax.scatter(j3_roots, np.zeros((4, )), s=30, c='r', label=r"$J_3$_Zeros", zorder=5) ax.scatter(0, 0, s=30, c='k', label=r"Root at 0", zorder=5) ax.hlines(0, 0, xmax, color='k') ax.set_xlim(xmin, xmax) plt.legend()✗
<matplotlib.legend.Legend object at 0x7f3f68aef770>
plt.show()
✓
See also
Aliases
scipy.special.jn_zeros