4 releases

Uses old Rust 2015

0.1.4 Aug 1, 2019
0.1.3 Feb 12, 2018
0.1.2 Feb 12, 2018
0.1.0 Dec 31, 2017

#1379 in Algorithms

Download history 6/week @ 2024-08-08 103/week @ 2024-08-15 12/week @ 2024-08-29 2/week @ 2024-09-05 1/week @ 2024-09-12 16/week @ 2024-09-19 126/week @ 2024-09-26 49/week @ 2024-10-03 11/week @ 2024-10-10 80/week @ 2024-10-17 173/week @ 2024-10-24 115/week @ 2024-10-31 363/week @ 2024-11-07 129/week @ 2024-11-14

799 downloads per month
Used in 3 crates (2 directly)

Apache-2.0

7KB
133 lines

Kahan Sum

This crate implements a type for computing Kahan sums over floating point numbers. It also implements a new trait for computing Kahan sums over iterators of floats.

To use Kahan Sum in your project

Add

[dependencies]
kahan = "0.1"

to your Cargo.toml, and

extern crate kahan;

to your lib.rs or main.rs.

Example

For examples, please see the documentation.


lib.rs:

This crate implements a type for computing Kahan sums over floating point numbers. It also implements a new trait for computing Kahan sums over iterators of floats.

Dependencies

~150KB