Average Error: 34.5 → 0.1
Time: 18.0s
Precision: 64
Internal precision: 1408
\[\left(e^{x} - 2\right) + e^{-x}\]
\[\frac{1}{12} \cdot {x}^{4} + \left(\frac{1}{360} \cdot {x}^{6} + {x}^2\right)\]

Error

Bits error versus x

Target

Original34.5
Comparison9.0
Herbie0.1
\[ 4 \cdot {\left(\sinh \left(\frac{x}{2}\right)\right)}^2 \]

Derivation

  1. Initial program 34.5

    \[\left(e^{x} - 2\right) + e^{-x}\]
  2. Applied taylor 0.1

    \[\leadsto \frac{1}{12} \cdot {x}^{4} + \left(\frac{1}{360} \cdot {x}^{6} + {x}^2\right)\]
  3. Taylor expanded around 0 0.1

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

Runtime

Time bar (total: 18.0s) Debug log

Please include this information when filing a bug report:

herbie shell --seed '#(644180380 3784176976 401987740 22459203 1940947670 3323606534)'
(FPCore (x)
  :name "exp2 (problem 3.3.7)"

  :target
  (* 4 (sqr (sinh (/ x 2))))

  (+ (- (exp x) 2) (exp (- x))))