compensated-summation

Crates.iocompensated-summation
lib.rscompensated-summation
version0.3.0
sourcesrc
created_at2024-05-14 12:19:49.715937
updated_at2024-05-20 13:44:13.920814
descriptionCompensated summation algorithms for better precision.
homepage
repositoryhttps://github.com/FedericoStra/compensated-summation
max_upload_size
id1239520
size30,803
Federico Stra (FedericoStra)

documentation

README

compensated-summation

Compensated summation algorithms for better precision.

crates.io docs.rs GitHub GitHub Workflow Status Dependencies status MIT license

This crate implements summation algorithms that significantly reduce the numerical error in the total obtained by adding a sequence of finite-precision floating-point numbers, compared to the obvious approach.

Currently it implements the 2Sum and Fast2Sum from https://en.wikipedia.org/wiki/2Sum for exact addition and the Kahan-Babuška and Kahan-Babuška-Neumaier algorithms for compensated summation.

Please see the documentation for a description of the API and some usage examples.

Commit count: 12

cargo fmt