Package: PreciseSums 0.6

Matthew Fidler

PreciseSums: Accurate Floating Point Sums and Products

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.

Authors:Matthew Fidler [aut, cre, cph], Raymond Hettinger [cph, aut], Jonathan Shewchuk [cph, aut], Julian Taylor [cph, aut], Nathaniel Smith [cph, aut], NumPy Team [cph], Python Team [cph]

PreciseSums_0.6.tar.gz
PreciseSums_0.6.zip(r-4.5)PreciseSums_0.6.zip(r-4.4)PreciseSums_0.6.zip(r-4.3)
PreciseSums_0.6.tgz(r-4.4-arm64)PreciseSums_0.6.tgz(r-4.4-x86_64)PreciseSums_0.6.tgz(r-4.3-arm64)PreciseSums_0.6.tgz(r-4.3-x86_64)
PreciseSums_0.6.tar.gz(r-4.5-noble)PreciseSums_0.6.tar.gz(r-4.4-noble)
PreciseSums_0.6.tgz(r-4.4-emscripten)PreciseSums_0.6.tgz(r-4.3-emscripten)
PreciseSums.pdf |PreciseSums.html
PreciseSums/json (API)
NEWS

# Install PreciseSums in R:
install.packages('PreciseSums', repos = c('https://nlmixr2.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/nlmixr2/precisesums/issues

On CRAN:

8 exports 1 stars 3.84 score 0 dependencies 28 dependents

Last updated 1 years agofrom:92bfa067614a0437c5ba194d223cf0130b5edb8e

Exports:fsumkahanSumneumaierSumpairwiseSumpsProdpsSetProdpsSetSumpsSum

Dependencies: