Average Error: 58.4 → 0.6
Time: 14.4s
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.4

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

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

    \[\leadsto \color{blue}{x + \left(x \cdot x\right) \cdot \left(\frac{1}{2} + \frac{1}{6} \cdot x\right)}\]

Runtime

Time bar (total: 14.4s)Debug logProfile

herbie shell --seed '#(1064173506 2580572819 2847706409 4129882574 1125180799 1845288547)' 
(FPCore (x)
  :name "expm1 (example 3.7)"
  :pre (< -0.00017 x)
  (- (exp x) 1))