Average Error: 15.0 → 0.1
Time: 8.4s
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 15.0

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

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

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

    \[\leadsto \frac{x - \left(x + 1\right)}{x + {x}^2}\]
  6. Taylor expanded around 0 14.3

    \[\leadsto \frac{x - \left(x + 1\right)}{\color{blue}{x + {x}^2}}\]
  7. Applied simplify 0.1

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

Runtime

Time bar (total: 8.4s) Debug log

Please include this information when filing a bug report:

herbie shell --seed '#(644180380 3784176976 401987740 22459203 1940947670 3323606534)'
(FPCore (x)
  :name "2frac (problem 3.3.1)"
  (- (/ 1 (+ x 1)) (/ 1 x)))