Average Error: 14.6 → 0.1
Time: 8.8s
Precision: 64
Internal precision: 896
\[\frac{1}{x + 1} - \frac{1}{x}\]
\[\frac{\frac{-1}{x}}{1 + x}\]

Error

Bits error versus x

Derivation

  1. Initial program 14.6

    \[\frac{1}{x + 1} - \frac{1}{x}\]
  2. Using strategy rm
  3. Applied frac-sub 14.0

    \[\leadsto \color{blue}{\frac{1 \cdot x - \left(x + 1\right) \cdot 1}{\left(x + 1\right) \cdot x}}\]
  4. Applied simplify 14.0

    \[\leadsto \frac{\color{blue}{x - \left(1 + x\right)}}{\left(x + 1\right) \cdot x}\]
  5. Using strategy rm
  6. Applied *-un-lft-identity 14.0

    \[\leadsto \frac{\color{blue}{1 \cdot \left(x - \left(1 + x\right)\right)}}{\left(x + 1\right) \cdot x}\]
  7. Applied times-frac 14.0

    \[\leadsto \color{blue}{\frac{1}{x + 1} \cdot \frac{x - \left(1 + x\right)}{x}}\]
  8. Applied taylor 0.1

    \[\leadsto \frac{1}{x + 1} \cdot \frac{-1}{x}\]
  9. Taylor expanded around 0 0.1

    \[\leadsto \frac{1}{x + 1} \cdot \frac{\color{blue}{-1}}{x}\]
  10. Applied simplify 0.1

    \[\leadsto \color{blue}{\frac{\frac{-1}{x}}{1 + x}}\]
  11. Removed slow pow expressions

Runtime

Time bar (total: 8.8s) Debug log

Please include this information when filing a bug report:

herbie shell --seed '#(2277612311 2645429965 1090895633 2857793080 2144184008 3989768357)'
(FPCore (x)
  :name "2frac (problem 3.3.1)"
  (- (/ 1 (+ x 1)) (/ 1 x)))