Average Error: 58.5 → 0.5
Time: 10.9s
Precision: 64
Internal Precision: 1408
\[e^{x} - 1\]
\[x + \left(x \cdot x\right) \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)\]

Error

Bits error versus x

Derivation

  1. Initial program 58.5

    \[e^{x} - 1\]
  2. Taylor expanded around 0 0.5

    \[\leadsto \color{blue}{\frac{1}{2} \cdot {x}^{2} + \left(\frac{1}{6} \cdot {x}^{3} + x\right)}\]
  3. Applied simplify0.5

    \[\leadsto \color{blue}{x + \left(x \cdot x\right) \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)}\]
  4. Removed slow pow expressions.

Runtime

Time bar (total: 10.9s)Debug logProfile

herbie shell --seed '#(1063282112 2455465480 4141627379 3773598652 1647277307 776739644)' 
(FPCore (x)
  :name "expm1 (example 3.7)"
  :pre (< -0.00017 x)
  (- (exp x) 1))