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

Structs

Traits

  • Implementations of Bessel functions as a trait
  • Implementations of beta functions as a trait
  • Implementations of Dawson integral as a trait
  • Implementations of elliptic integrals as a trait
  • Implementations of error functions as a trait
  • Implementations of Fresnel integrals as a trait
  • Implementations of gamma functions as a trait
  • Implementations of Normal (Gaussian) distribution as a trait
  • Implementations of sine and cosine integrals as a trait
  • Implementations of zeta functions as a trait