Average Error: 58.5 → 0.0
Time: 3.3s
Precision: 64
Internal Precision: 1344
\[e^{x} - 1\]
\[(e^{x} - 1)^*\]

Error

Bits error versus x

Target

Original58.5
Target0.5
Herbie0.0
\[x \cdot \left(\left(1 + \frac{x}{2}\right) + \frac{x \cdot x}{6}\right)\]

Derivation

  1. Initial program 58.5

    \[e^{x} - 1\]
  2. Applied simplify0.0

    \[\leadsto \color{blue}{(e^{x} - 1)^*}\]

Runtime

Time bar (total: 3.3s)Debug logProfile

herbie shell --seed '#(1072840222 1305617769 1692503039 1353360431 4178980589 1488672652)' +o rules:numerics
(FPCore (x)
  :name "expm1 (example 3.7)"
  :pre (< -0.00017 x)

  :herbie-target
  (* x (+ (+ 1 (/ x 2)) (/ (* x x) 6)))

  (- (exp x) 1))