Skip to main content

hyp1f1

Function hyp1f1 

Source
pub fn hyp1f1<T: Hyp1F1Arg>(a: f64, b: f64, z: T) -> T
Expand description

Kummer’s confluent hypergeometric function $_1F_1$

Corresponds to scipy.special.hyp1f1 in SciPy, and accepts both f64 and num_complex::Complex<f64> inputs for z.

§Notes

The confluent hypergeometric function is defined by the series

$$ M(a,b,z) = \hyp 1 1 a b z = \sum_{n=0}^\infty {\rpow a n \over \rpow b n} {z^n \over n!} $$

See 1 for more details. Here $\rpow{\square}{n}$ is the rising factorial; see pow_rising.

For f64 $z$, NaN is returned if the estimated accuracy of the result is too low, e.g. if its series cancels or doesn’t converge and no other method applies.

§See also

  • hypu: Tricomi’s confluent hypergeometric function $U(a,b,x)$
  • hyp0f1: Confluent hypergeometric limit function, $_0F_1\left[b\middle| z\right]$
  • hyp2f1: Gauss’ hypergeometric function, $\hyp 2 1 {a_1\enspace a_2} b z$

  1. NIST Digital Library of Mathematical Functions https://dlmf.nist.gov/13.2#E2 ↩