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

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

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. Initial simplification0.0

    \[\leadsto (e^{x} - 1)^*\]
  3. Final simplification0.0

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

Runtime

Time bar (total: 2.9s)Debug logProfile

herbie shell --seed 2018217 +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))