Skip to main content

riccati_j

Function riccati_j 

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

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

The Riccati-Bessel function of the first kind is defined as $x \mathop{j}_n(x)$, where $j_n$ is the spherical Bessel function of the first kind of order $n$.

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

Corresponds to scipy.special.riccati_jn.

§Returns

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

§See also