Average Error: 39.8 → 39.8
Time: 1.5s
Precision: binary64
\[\frac{1 - e^{-x}}{x}\]
\[\frac{1 - e^{-x}}{x}\]

Error

Bits error versus x

Derivation

  1. Initial program 39.8

    \[\frac{1 - e^{-x}}{x}\]
  2. Final simplification39.8

    \[\leadsto \frac{1 - e^{-x}}{x}\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x)
  :name "(/ (- 1 (exp (- x))) x)"
  :precision binary64
  (/ (- 1.0 (exp (neg x))) x))