Average Error: 39.9 → 1.0
Time: 15.0s
Precision: 64
Internal Precision: 1344
\[\frac{e^{x}}{e^{x} - 1}\]
\[\frac{e^{x}}{x + \left(x \cdot \frac{1}{6} + \frac{1}{2}\right) \cdot \left(x \cdot x\right)}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original39.9
Target39.5
Herbie1.0
\[\frac{1}{1 - e^{-x}}\]

Derivation

  1. Initial program 39.9

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

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

    \[\leadsto \frac{e^{x}}{\color{blue}{x + \left(x \cdot \frac{1}{6} + \frac{1}{2}\right) \cdot \left(x \cdot x\right)}}\]
  4. Final simplification1.0

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

Runtime

Time bar (total: 15.0s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes1.01.00.40.60%
herbie shell --seed 2018285 
(FPCore (x)
  :name "expq2 (section 3.11)"

  :herbie-target
  (/ 1 (- 1 (exp (- x))))

  (/ (exp x) (- (exp x) 1)))