Average Error: 14.6 → 0.1
Time: 24.5s
Precision: 64
Ground Truth: 128
\[\frac{1}{x + 1} - \frac{1}{x}\]
\[\frac{\frac{-1}{1 + x}}{x}\]

Error

Bits error versus x

Derivation

  1. Initial program 14.6

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

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

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

    \[\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

Total time: 24.5s Debug log

Please include this information when filing a bug report:

herbie --seed '#(3868972381 126171956 3876549643 1832847468 3227345361 3444337667)'
(FPCore (x)
  :name "NMSE problem 3.3.1"
  (- (/ 1 (+ x 1)) (/ 1 x)))