Average Error: 29.4 → 0.6
Time: 23.0s
Precision: 64
Internal Precision: 1344
\[\left(e^{x} - 2\right) + e^{-x}\]
\[\frac{1}{360} \cdot {x}^{6} + \left(\frac{1}{12} \cdot {x}^{4} + {x}^{2}\right)\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 29.4

    \[\left(e^{x} - 2\right) + e^{-x}\]
  2. Taylor expanded around 0 0.6

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

Runtime

Time bar (total: 23.0s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (x)
  :name "(exp(x) - 2 ) + exp(-x)"
  (+ (- (exp x) 2) (exp (- x))))