Skip to main content

riccati_y

Function riccati_y 

Source
pub fn riccati_y<const N: usize>(x: f64) -> ([f64; N], [f64; N])
Expand description

Compute Riccati-Bessel function of the second kind and derivatives for the first $N$ orders

The Riccati-Bessel function of the second kind is defined here as $x \mathop{y}_n(x)$, where $y_n$ is the spherical Bessel function of the second kind of order $n$. Note that this is in contrast to a common convention that includes a minus sign in the definition.

This function computes the value and first derivative of the function for the orders 0..N.

Corresponds to scipy.special.riccati_yn.

§Returns

  • $[x y_0(x), \ldots, x y_{N-1}(x)]$
  • Their derivatives with respect to $x$

§See also