Average Error: 14.4 → 0.4
Time: 16.3s
Precision: 64
Internal Precision: 832
\[\frac{1}{x + 1} - \frac{1}{x}\]
\[\frac{-1}{(x \cdot x + x)_*}\]

Error

Bits error versus x

Derivation

  1. Initial program 14.4

    \[\frac{1}{x + 1} - \frac{1}{x}\]
  2. Initial simplification14.4

    \[\leadsto \frac{1}{x + 1} - \frac{1}{x}\]
  3. Using strategy rm
  4. Applied frac-sub13.7

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

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

    \[\leadsto \frac{-1}{\color{blue}{(x \cdot x + x)_*}}\]
  7. Final simplification0.4

    \[\leadsto \frac{-1}{(x \cdot x + x)_*}\]

Runtime

Time bar (total: 16.3s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes0.40.40.30.00%
herbie shell --seed 2018286 +o rules:numerics
(FPCore (x)
  :name "2frac (problem 3.3.1)"
  (- (/ 1 (+ x 1)) (/ 1 x)))