Average Error: 14.4 → 1.3
Time: 11.1s
Precision: 64
Internal Precision: 896
\[\frac{1}{x + 1} - \frac{1}{x}\]
\[\frac{\frac{-1}{\sqrt[3]{(x \cdot x + x)_*} \cdot \sqrt[3]{(x \cdot x + x)_*}}}{\sqrt[3]{(x \cdot 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-sub13.7

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

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

    \[\leadsto \frac{x - \left(x + 1\right)}{\color{blue}{(x \cdot x + x)_*}}\]
  6. Using strategy rm
  7. Applied add-cube-cbrt14.4

    \[\leadsto \frac{x - \left(x + 1\right)}{\color{blue}{\left(\sqrt[3]{(x \cdot x + x)_*} \cdot \sqrt[3]{(x \cdot x + x)_*}\right) \cdot \sqrt[3]{(x \cdot x + x)_*}}}\]
  8. Applied associate-/r*14.4

    \[\leadsto \color{blue}{\frac{\frac{x - \left(x + 1\right)}{\sqrt[3]{(x \cdot x + x)_*} \cdot \sqrt[3]{(x \cdot x + x)_*}}}{\sqrt[3]{(x \cdot x + x)_*}}}\]
  9. Applied simplify1.3

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

Runtime

Time bar (total: 11.1s)Debug logProfile

herbie shell --seed '#(1070227846 1561819246 480764335 4016816270 2602869839 2117310382)' +o rules:numerics
(FPCore (x)
  :name "2frac (problem 3.3.1)"
  (- (/ 1 (+ x 1)) (/ 1 x)))