sl: A scientific library

Table of contents

  1. Special functions
    1. Gamma function and related
    2. Polynomials and related
    3. Elliptic integrals and related

Special functions

Namespace sl::sf, or sl_sf as a standalone crate.

Gamma function and related

fn gamma(x: f64) -> f64
The gamma function Γ(x).
fn cgamma(z: c64) -> c64
The complex gamma function Γ(z).

Polynomial functions and related

fn legendre(n: i32, m: i32, x: f64) -> f64
Associated legendre function Pn,m(x). Legendre polynomial Pn(x)=Pn,0(x).

Elliptic integrals and related

fn agm(x: f64, y: f64) -> f64
Arithmetic-geometric mean of x and y.
fn cK(m: f64) -> f64
Complete elliptic integral of the first kind, m=k2.
fn cE(m: f64) -> f64
Complete elliptic integral of the second kind, m=k2.
fn eiF(phi: f64, m: f64) -> f64
Elliptic integral of the second kind, m=k2.
fn eiE(phi: f64, m: f64) -> f64
Elliptic integral of the second kind, m=k2.
fn eiPi(phi: f64, n: f64, m: f64) -> f64
Elliptic integral of the third kind, m=k2.
fn RF(x: f64, y: f64, z: f6) -> f64
Carlson symmetric form RF(x,y,z).
fn RC(x: f64, y: f64, z: f6) -> f64
Carlson symmetric form RC(x,y).
fn RJ(x: f64, y: f64, z: f6, p: f64) -> f64
Carlson symmetric form RJ(x,y,z,p).
fn RD(x: f64, y: f64, z: f6) -> f64
Carlson symmetric form RD(x,y,z).