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

Error

Bits error versus x

Derivation

  1. Initial program 14.4

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

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

    \[\leadsto \frac{\color{blue}{x - \left(x + 1\right)}}{\left(x + 1\right) \cdot x}\]
  5. Using strategy rm
  6. Applied associate-/r* 13.8

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

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

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

Runtime

Time bar (total: 2.7s) Debug logProfile

Please include this information when filing a bug report:

herbie shell --seed '#(1065033997 2389885643 4100569014 2620012693 26800780 3144211646)'
(FPCore (x)
  :name "2frac (problem 3.3.1)"
  (- (/ 1 (+ x 1)) (/ 1 x)))