Average Error: 40.8 → 1.1
Time: 20.2s
Precision: 64
Internal Precision: 128
\[\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

Original40.8
Target40.4
Herbie1.1
\[\frac{1}{1 - e^{-x}}\]

Derivation

  1. Initial program 40.8

    \[\frac{e^{x}}{e^{x} - 1}\]
  2. Initial simplification40.8

    \[\leadsto \frac{e^{x}}{e^{x} - 1}\]
  3. Taylor expanded around 0 11.2

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

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

    \[\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: 20.2s)Debug logProfile

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

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

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