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

Error

Bits error versus x

Target

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

Derivation

  1. Initial program 58.7

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

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

Runtime

Time bar (total: 3.4s)Debug logProfile

herbie shell --seed '#(1071948828 1180510430 2986424009 997076509 406109801 420189285)' +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))