Average Error: 40.4 → 0.5
Time: 16.2s
Precision: 64
Internal Precision: 1344
\[\frac{e^{x}}{e^{x} - 1}\]
\[\left(\frac{\sqrt{e^{x}}}{(e^{x} - 1)^*} \cdot \sqrt{\sqrt[3]{e^{x}}}\right) \cdot \left|\sqrt[3]{e^{x}}\right|\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original40.4
Target40.0
Herbie0.5
\[\frac{1}{1 - e^{-x}}\]

Derivation

  1. Initial program 40.4

    \[\frac{e^{x}}{e^{x} - 1}\]
  2. Initial simplification0.5

    \[\leadsto \frac{e^{x}}{(e^{x} - 1)^*}\]
  3. Using strategy rm
  4. Applied *-un-lft-identity0.5

    \[\leadsto \frac{e^{x}}{\color{blue}{1 \cdot (e^{x} - 1)^*}}\]
  5. Applied add-sqr-sqrt0.5

    \[\leadsto \frac{\color{blue}{\sqrt{e^{x}} \cdot \sqrt{e^{x}}}}{1 \cdot (e^{x} - 1)^*}\]
  6. Applied times-frac0.5

    \[\leadsto \color{blue}{\frac{\sqrt{e^{x}}}{1} \cdot \frac{\sqrt{e^{x}}}{(e^{x} - 1)^*}}\]
  7. Simplified0.5

    \[\leadsto \color{blue}{\sqrt{e^{x}}} \cdot \frac{\sqrt{e^{x}}}{(e^{x} - 1)^*}\]
  8. Using strategy rm
  9. Applied add-cube-cbrt0.5

    \[\leadsto \sqrt{\color{blue}{\left(\sqrt[3]{e^{x}} \cdot \sqrt[3]{e^{x}}\right) \cdot \sqrt[3]{e^{x}}}} \cdot \frac{\sqrt{e^{x}}}{(e^{x} - 1)^*}\]
  10. Applied sqrt-prod0.5

    \[\leadsto \color{blue}{\left(\sqrt{\sqrt[3]{e^{x}} \cdot \sqrt[3]{e^{x}}} \cdot \sqrt{\sqrt[3]{e^{x}}}\right)} \cdot \frac{\sqrt{e^{x}}}{(e^{x} - 1)^*}\]
  11. Applied associate-*l*0.5

    \[\leadsto \color{blue}{\sqrt{\sqrt[3]{e^{x}} \cdot \sqrt[3]{e^{x}}} \cdot \left(\sqrt{\sqrt[3]{e^{x}}} \cdot \frac{\sqrt{e^{x}}}{(e^{x} - 1)^*}\right)}\]
  12. Simplified0.5

    \[\leadsto \color{blue}{\left|\sqrt[3]{e^{x}}\right|} \cdot \left(\sqrt{\sqrt[3]{e^{x}}} \cdot \frac{\sqrt{e^{x}}}{(e^{x} - 1)^*}\right)\]
  13. Final simplification0.5

    \[\leadsto \left(\frac{\sqrt{e^{x}}}{(e^{x} - 1)^*} \cdot \sqrt{\sqrt[3]{e^{x}}}\right) \cdot \left|\sqrt[3]{e^{x}}\right|\]

Runtime

Time bar (total: 16.2s)Debug logProfile

herbie shell --seed 2018250 +o rules:numerics
(FPCore (x)
  :name "expq2 (section 3.11)"

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

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