#float #single #double

special-fun

Special functions for Rust by binding to the Cephes library

6 releases

Uses old Rust 2015

0.2.0 Mar 15, 2019
0.1.6 Oct 19, 2017
0.1.5 Jan 31, 2017
0.1.4 Dec 12, 2016
0.1.2 Jan 11, 2016

#214 in Science

Download history 19/week @ 2021-10-03 17/week @ 2021-10-10 16/week @ 2021-10-17 19/week @ 2021-10-24 32/week @ 2021-10-31 43/week @ 2021-11-07 11/week @ 2021-11-14 37/week @ 2021-11-21 43/week @ 2021-11-28 20/week @ 2021-12-05 25/week @ 2021-12-12 14/week @ 2021-12-19 13/week @ 2021-12-26 20/week @ 2022-01-02 22/week @ 2022-01-09 27/week @ 2022-01-16

82 downloads per month
Used in 3 crates

BSD-2-Clause

1MB
38K SLoC

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

special-fun

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.

Related Projects

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

No runtime deps

\