# scipy 1.18.1 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input
Compute zeros of integer-order Bessel function Yn(x).

    Compute `nt` zeros of the functions :math:`Y_n(x)` on the interval
    :math:`(0, \infty)`. The zeros are returned in ascending order.

    Parameters
    ----------
    n : int
        Order of Bessel function
    nt : int
        Number of zeros to return

    Returns
    -------
    ndarray
        First `nt` zeros of the Bessel function.

    See Also
    --------
    yn: Bessel function of the second kind for integer order
    yv: Bessel function of the second kind for real order

    References
    ----------
    .. [1] Zhang, Shanjie and Jin, Jianming. "Computation of Special
           Functions", John Wiley and Sons, 1996, chapter 5.
           https://people.sc.fsu.edu/~jburkardt/f77_src/special_functions/special_functions.html

    Examples
    --------
    Compute the first four roots of :math:`Y_2`.

    >>> from scipy.special import yn_zeros
    >>> yn_zeros(2, 4)
    array([ 3.38424177,  6.79380751, 10.02347798, 13.20998671])

    Plot :math:`Y_2` and its first four roots.

    >>> import numpy as np
    >>> import matplotlib.pyplot as plt
    >>> from scipy.special import yn, yn_zeros
    >>> xmin = 2
    >>> xmax = 15
    >>> x = np.linspace(xmin, xmax, 500)
    >>> fig, ax = plt.subplots()
    >>> ax.hlines(0, xmin, xmax, color='k')
    >>> ax.plot(x, yn(2, x), label=r'$Y_2$')
    >>> ax.scatter(yn_zeros(2, 4), np.zeros((4, )), s=30, c='r',
    ...            label='Roots', zorder=5)
    >>> ax.set_ylim(-0.4, 0.4)
    >>> ax.set_xlim(xmin, xmax)
    >>> plt.legend()
    >>> plt.show()
    
=== parse numpydoc
short_description: 'Compute zeros of integer-order Bessel function Yn(x).'
long_description: |
  Compute `nt` zeros of the functions :math:`Y_n(x)` on the interval
  :math:`(0, \infty)`. The zeros are returned in ascending order.
blank_after_short_description: True
blank_after_long_description: True
style: numpydoc
- DocstringParam
  description: 'Order of Bessel function'
  kind: param
  key: 'param'
  arg_name: 'n'
  type_name: 'int'
  is_optional: False
- DocstringParam
  description: 'Number of zeros to return'
  kind: param
  key: 'param'
  arg_name: 'nt'
  type_name: 'int'
  is_optional: False
- DocstringReturns
  description: 'First `nt` zeros of the Bessel function.'
  kind: returns
  key: 'returns'
  type_name: 'ndarray'
  is_generator: False
- DocstringMeta
  description: |
    yn: Bessel function of the second kind for integer order
    yv: Bessel function of the second kind for real order
  kind: text
  key: 'see_also'
  title: 'See Also'
- DocstringMeta
  description: |
    .. [1] Zhang, Shanjie and Jin, Jianming. "Computation of Special
           Functions", John Wiley and Sons, 1996, chapter 5.
           https://people.sc.fsu.edu/~jburkardt/f77_src/special_functions/special_functions.html
  kind: text
  key: 'references'
  title: 'References'
- DocstringExample
  description: 'Compute the first four roots of :math:`Y_2`.'
  kind: examples
  key: 'examples'
  snippet: '>>> from scipy.special import yn_zeros'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> yn_zeros(2, 4)
    array([ 3.38424177,  6.79380751, 10.02347798, 13.20998671])
- DocstringExample
  description: 'Plot :math:`Y_2` and its first four roots.'
  kind: examples
  key: 'examples'
  snippet: '>>> import numpy as np'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> import matplotlib.pyplot as plt'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> from scipy.special import yn, yn_zeros'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> xmin = 2'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> xmax = 15'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> x = np.linspace(xmin, xmax, 500)'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> fig, ax = plt.subplots()'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: ">>> ax.hlines(0, xmin, xmax, color='k')"
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: ">>> ax.plot(x, yn(2, x), label=r'$Y_2$')"
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: |
    >>> ax.scatter(yn_zeros(2, 4), np.zeros((4, )), s=30, c='r',
    ...            label='Roots', zorder=5)
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> ax.set_ylim(-0.4, 0.4)'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> ax.set_xlim(xmin, xmax)'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> plt.legend()'
- DocstringExample
  kind: examples
  key: 'examples'
  snippet: '>>> plt.show()'
=== detect
numpydoc
=== compose numpydoc
Compute zeros of integer-order Bessel function Yn(x).

Compute `nt` zeros of the functions :math:`Y_n(x)` on the interval
:math:`(0, \infty)`. The zeros are returned in ascending order.

Parameters
----------
n : int
    Order of Bessel function
nt : int
    Number of zeros to return

Returns
-------
ndarray
    First `nt` zeros of the Bessel function.

See Also
--------
yn: Bessel function of the second kind for integer order
yv: Bessel function of the second kind for real order

References
----------
.. [1] Zhang, Shanjie and Jin, Jianming. "Computation of Special
       Functions", John Wiley and Sons, 1996, chapter 5.
       https://people.sc.fsu.edu/~jburkardt/f77_src/special_functions/special_functions.html

Examples
--------
Compute the first four roots of :math:`Y_2`.

>>> from scipy.special import yn_zeros
>>> yn_zeros(2, 4)
array([ 3.38424177,  6.79380751, 10.02347798, 13.20998671])

Plot :math:`Y_2` and its first four roots.

>>> import numpy as np
>>> import matplotlib.pyplot as plt
>>> from scipy.special import yn, yn_zeros
>>> xmin = 2
>>> xmax = 15
>>> x = np.linspace(xmin, xmax, 500)
>>> fig, ax = plt.subplots()
>>> ax.hlines(0, xmin, xmax, color='k')
>>> ax.plot(x, yn(2, x), label=r'$Y_2$')
>>> ax.scatter(yn_zeros(2, 4), np.zeros((4, )), s=30, c='r',
...            label='Roots', zorder=5)
>>> ax.set_ylim(-0.4, 0.4)
>>> ax.set_xlim(xmin, xmax)
>>> plt.legend()
>>> plt.show()
