Average Error: 14.8 → 0.1
Time: 23.0s
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.8

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

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

    \[\leadsto \frac{\color{blue}{x - \left(x + 1\right)}}{\left(x + 1\right) \cdot x}\]
  5. Taylor expanded around 0 14.1

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

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

Runtime

Time bar (total: 23.0s)Debug logProfile

herbie shell --seed '#(1062900086 561157142 2241869825 1166610429 2484609072 2159574644)' 
(FPCore (x)
  :name "2frac (problem 3.3.1)"
  (- (/ 1 (+ x 1)) (/ 1 x)))