floating-point-contractions

2020-12-20

Numerically stable contractions of floating-point operations.

Upstream URL

github.com/ruricolist/floating-point-contractions

Author

Paul M. Rodriguez <pmr@ruricolist.com>

License

MIT
README
This system provides some numerically stable, contracted versions of

common but unstable floating-point operations.

Export (AKA) Computes
log1+ log1p log (1 + x)
log1- log1m log (1 - x)
log1+/x (log (1 + x))/x
exp-1 expm1 exp(x) - 1
exp-1/x (exp(x)-1)/x
expt-1 powm1 (x^y)-1
log1-exp log1mexp log(1 - exp(x))
log1+exp log1pexp log(1 + exp(x))
log2-exp log2mexp log(2 - exp(x))
logexp-1 logexpm1 log(exp(a) -1)
hypot sqrt(x^2 + y^2)

Dependencies (0)

    Dependents (1)

    • with-c-syntax
    • GitHub
    • Quicklisp