Accurate 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.
- Created a new non-binary linkage method with 'PreciseSumsPtr.h' in addition to 'PreciseSums.h'. To break binary package dependencies, the
rxode2internals use the function pointers, while the models built byrxode2use the binary linkage. - As requested by
CRANuse strict headers.
From NEWS.md in the release
Install
Health
- OK13 OK2026-09-08
- ERROR12 OK, 1 ERROR2026-09-07
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 9 (1 internal)
- Examples that run
- 100%4 run in a plain check
- Exported functions with examples
- 44%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 44%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Releases over time
PRs over time
Commits over time
Commit identities over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/nlmixr2/precisesums on 2026-10-22.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-08-27Pull request it wrote: opened by a project memberCommits: at least 1 crediting it in the message
- Claude Opus 51 commit · Aug 2026
Dependencies
Installing PreciseSums adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 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
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("PreciseSums")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.