Crate spec_math

Source
Expand description

This crate contains approximations for a set of mathematical functions commonly referred to as “special functions”. The goal of this crate is to eventually contain a full Rust re-implementation of the CEPHES library with minimal changes in modules such as the cephes64 module. The special functions will also be available as traits for easier use in Rust, potentially with modifications to correct bugs or improve performance from the original CEPHES implementation.

Currently, the error functions, gamma functions, beta functions, fresnel integrals, sine and cosine integrals, elliptic integrals, and bessel functions are implemented.

Modules§

cephes64
Functions from the CEPHES library re-implemented in Rust for f64.
misc
utils

Structs§

AiryOutput
EllipJOutput
FresnelOutput
ShiChiOutput
SiCiOutput

Traits§

Bessel
Implementations of Bessel functions as a trait
Beta
Implementations of beta functions as a trait
BetaDist
Implementations of beta distribution as a trait
BinomDist
Implementations of binomial distribution as a trait
Chi2Dist
Implementations of Chi squared distribution as a trait
Dawson
Implementations of Dawson integral as a trait
Ellip
Implementations of elliptic integrals as a trait
Erf
Implementations of error functions as a trait
Expn
Implementations of the generalized exponential integral as a trait
FDist
Implementations of f distribution as a trait
Fresnel
Implementations of Fresnel integrals as a trait
Gamma
Implementations of gamma functions as a trait
GammaDist
Implementations of gamma distribution as a trait
NBinomDist
Implementations of negative binomial distribution as a trait
NormDist
Implementations of Normal (Gaussian) distribution as a trait
PoissonDist
Implementations of the Poisson distribution as a trait
Polylog
Implementations of polylogarithms as a trait
ShiChi
Implementations of hyperbolic sine and cosine integrals as a trait
SiCi
Implementations of sine and cosine integrals as a trait
TDist
Implementations of the student’s t distribution as a trait
Zeta
Implementations of zeta functions as a trait