Average Error: 14.8 → 0.4
Time: 10.4s
Precision: 64
Internal Precision: 832
\[\frac{1}{x + 1} - \frac{1}{x}\]
\[\frac{-1}{\left(x + 1\right) \cdot x}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

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. Simplified0.4

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

    \[\leadsto \frac{-1}{\left(x + 1\right) \cdot x}\]

Runtime

Time bar (total: 10.4s)Debug logProfile

herbie shell --seed 2018248 
(FPCore (x)
  :name "2frac (problem 3.3.1)"
  (- (/ 1 (+ x 1)) (/ 1 x)))