#double #single #float #probability-distribution

special-fun

Special functions for Rust by binding to the Cephes library

7 releases

Uses old Rust 2015

0.3.0 Dec 17, 2023
0.2.0 Mar 15, 2019
0.1.6 Oct 19, 2017
0.1.5 Jan 31, 2017
0.1.2 Jan 11, 2016

#135 in Science

Download history 224/week @ 2024-06-16 249/week @ 2024-06-23 102/week @ 2024-06-30 218/week @ 2024-07-07 233/week @ 2024-07-14 252/week @ 2024-07-21 347/week @ 2024-07-28 230/week @ 2024-08-04 245/week @ 2024-08-11 207/week @ 2024-08-18 231/week @ 2024-08-25 259/week @ 2024-09-01 236/week @ 2024-09-08 226/week @ 2024-09-15 179/week @ 2024-09-22 350/week @ 2024-09-29

1,013 downloads per month
Used in 5 crates

BSD-2-Clause

1MB
38K SLoC

C 35K SLoC // 0.3% comments Assembly 2K SLoC // 0.2% comments Rust 601 SLoC // 0.0% comments Batch 247 SLoC

Contains (static library, 1KB) cephes-single/libmd.a

special-fun

Build Status

Special functions for Rust by binding to the Cephes library.

The following families of functions currently have Rust bindings for f32 and f64:

  • Bessel functions
  • Beta functions
  • Error functions
  • Gamma functions
  • Hypergeometric functions
  • Zeta functions
  • Normal probability distribution

Cephes implements a lot more functions that are not yet exposed in the Rust interface.

Installing

Cargo is used to build the included Cephes library (which is written in C) and to create a Rust library that statically links to Cephes.

License

The bindings and the Cephes library use the BSD license. The author of Cephes (Stephen Moshier) has agreed to this.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be licensed as above, without any additional terms or conditions.

  • special: Special functions implemented in pure Rust. Has less functions implemented and only supports f64.

No runtime deps