PreciseSums
0.7Accurate Floating Point Sums and Products
Overview
Most of the time floating point arithmetic does approximately the right thing. When adding sums or having products of numbers that greatly differ in magnitude, the floating point arithmetic may be incorrect. This package implements the Kahan (1965) sum doi:10.1145/363707.363723, Neumaier (1974) sum doi:10.1002/zamm.19740540106, pairwise-sum (adapted from 'NumPy', See Castaldo (2008) doi:10.1137/070679946 for a discussion of accuracy), and arbitrary precision sum (adapted from the fsum in 'Python' ; Shewchuk (1997) https://people.eecs.berkeley.edu/~jrs/papers/robustr.pdf). In addition, products are changed to long double precision for accuracy, or changed into a log-sum for accuracy.
Install
Health
- OK2026-08-0513 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-08-0112 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 44%
Downloads
Repository
Stars over time
Releases over time
PRs over time
Repository practices
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/nlmixr2/precisesums on 2026-08-16.
Dependencies
Code & Tests
People & History
6 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.7Latest
- RR 4.4.0 released · 2024-04-24
- 0.62023-04-22 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.52022-04-22 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.42020-07-10 · diff ↗
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 0.32018-04-12 · diff ↗
- 0.12017-11-14
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-11-14
- Total releases
- 6 / 9 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 3.2
- Download size
- 12 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("PreciseSums")This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-08-16, which the citation names so these numbers can be found later. More on citing and the projects behind them.