| Crates.io | compensated-summation |
| lib.rs | compensated-summation |
| version | 0.3.1 |
| created_at | 2024-05-14 12:19:49.715937+00 |
| updated_at | 2025-04-30 08:05:18.03046+00 |
| description | Compensated summation algorithms for better precision. |
| homepage | |
| repository | https://github.com/FedericoStra/compensated-summation |
| max_upload_size | |
| id | 1239520 |
| size | 49,452 |
Compensated summation algorithms for better precision.
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.