CRAN/E | PreciseSums

PreciseSums

Accurate Floating Point Sums and Products

Installation

About

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) ). In addition, products are changed to long double precision for accuracy, or changed into a log-sum for accuracy.

github.com/nlmixr2/PreciseSums
Bug report File report

Key Metrics

Version 0.6
R ≥ 3.2
Published 2023-04-22 373 days ago
Needs compilation? yes
License GPL-2
License GPL-3
CRAN checks PreciseSums results

Downloads

Yesterday 31 0%
Last 7 days 231 -21%
Last 30 days 1.062 -14%
Last 90 days 3.486 -12%
Last 365 days 14.358 +5%

Maintainer

Maintainer

Matthew Fidler

matthew.fidler@gmail.com

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

Material

NEWS
Reference manual
Package source

macOS

r-release

arm64

r-oldrel

arm64

r-release

x86_64

r-oldrel

x86_64

Windows

r-devel

x86_64

r-release

x86_64

r-oldrel

x86_64

Old Sources

PreciseSums archive

Depends

R ≥ 3.2

Suggests

testthat

Reverse Imports

ciuupi2
rxode2

Reverse LinkingTo

rxode2