Average Error: 39.7 → 0.4
Time: 18.5s
Precision: 64
Internal Precision: 1344
\[\frac{e^{x}}{e^{x} - 1}\]
\[e^{x} \cdot \frac{1}{(e^{x} - 1)^*}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original39.7
Target39.3
Herbie0.4
\[\frac{1}{1 - e^{-x}}\]

Derivation

  1. Initial program 39.7

    \[\frac{e^{x}}{e^{x} - 1}\]
  2. Applied simplify0.4

    \[\leadsto \color{blue}{\frac{e^{x}}{(e^{x} - 1)^*}}\]
  3. Using strategy rm
  4. Applied div-inv0.4

    \[\leadsto \color{blue}{e^{x} \cdot \frac{1}{(e^{x} - 1)^*}}\]

Runtime

Time bar (total: 18.5s)Debug logProfile

herbie shell --seed '#(1072936661 1621281212 3440817831 3219514234 460296804 1258167384)' +o rules:numerics
(FPCore (x)
  :name "expq2 (section 3.11)"

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

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