Average Error: 51.2 → 51.2
Time: 2.9s
Precision: binary64
\[\frac{\left(e^{-x} - 1\right) + x}{{x}^{2}}\]
\[\frac{\left(e^{-x} - 1\right) + x}{{x}^{2}}\]

Error

Bits error versus x

Derivation

  1. Initial program 51.2

    \[\frac{\left(e^{-x} - 1\right) + x}{{x}^{2}}\]
  2. Final simplification51.2

    \[\leadsto \frac{\left(e^{-x} - 1\right) + x}{{x}^{2}}\]

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(/ (+ (- (exp (- x)) 1) x) (pow x 2))"
  :precision binary64
  (/ (+ (- (exp (neg x)) 1.0) x) (pow x 2.0)))