Average Error: 58.6 → 0.0
Time: 3.8s
Precision: 64
Internal Precision: 1408
\[e^{x} - 1\]
\[(e^{x} - 1)^*\]

Error

Bits error versus x

Target

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

Derivation

  1. Initial program 58.6

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

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

Runtime

Time bar (total: 3.8s)Debug logProfile

herbie shell --seed '#(1070960995 739739648 2531964651 3069671617 351857262 3877178482)' +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))