Average Error: 40.3 → 0.7
Time: 23.4s
Precision: 64
Internal Precision: 1344
\[\frac{e^{x}}{e^{x} - 1}\]
\[\frac{\sqrt{e^{x}}}{x + \left({x}^{5} \cdot \frac{1}{1920} + \frac{1}{24} \cdot {x}^{3}\right)}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

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

Derivation

  1. Initial program 40.3

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

    \[\leadsto \frac{e^{x}}{e^{x} - 1}\]
  3. Using strategy rm
  4. Applied add-sqr-sqrt40.3

    \[\leadsto \frac{\color{blue}{\sqrt{e^{x}} \cdot \sqrt{e^{x}}}}{e^{x} - 1}\]
  5. Applied associate-/l*40.3

    \[\leadsto \color{blue}{\frac{\sqrt{e^{x}}}{\frac{e^{x} - 1}{\sqrt{e^{x}}}}}\]
  6. Taylor expanded around 0 0.7

    \[\leadsto \frac{\sqrt{e^{x}}}{\color{blue}{x + \left(\frac{1}{24} \cdot {x}^{3} + \frac{1}{1920} \cdot {x}^{5}\right)}}\]
  7. Final simplification0.7

    \[\leadsto \frac{\sqrt{e^{x}}}{x + \left({x}^{5} \cdot \frac{1}{1920} + \frac{1}{24} \cdot {x}^{3}\right)}\]

Runtime

Time bar (total: 23.4s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes0.70.70.30.40%
herbie shell --seed 2018339 
(FPCore (x)
  :name "expq2 (section 3.11)"

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

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