Average Error: 59.2 → 0.1
Time: 29.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 59.2

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

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

    \[\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: 29.9s)Debug log

herbie shell --seed '#(1567391828 2030694642 2833800258 828025724 3004380912 3532991858)' +o reduce:binary-search
(FPCore (x)
  :name "expm1 (example 3.7)"
  :pre (< -0.00017 x)
  (- (exp x) 1))