Average Error: 15.4 → 0.7
Time: 9.2s
Precision: 64
Internal Precision: 576
\[\frac{x}{x \cdot x + 1}\]
\[\left(\sqrt[3]{\frac{x}{\sqrt{1^2 + x^2}^*}} \cdot \sqrt[3]{\frac{x}{\sqrt{1^2 + x^2}^*}}\right) \cdot \frac{\sqrt[3]{\frac{x}{\sqrt{1^2 + x^2}^*}}}{\sqrt{1^2 + x^2}^*}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original15.4
Target0.1
Herbie0.7
\[\frac{1}{x + \frac{1}{x}}\]

Derivation

  1. Initial program 15.4

    \[\frac{x}{x \cdot x + 1}\]
  2. Initial simplification15.4

    \[\leadsto \frac{x}{(x \cdot x + 1)_*}\]
  3. Using strategy rm
  4. Applied add-sqr-sqrt15.4

    \[\leadsto \frac{x}{\color{blue}{\sqrt{(x \cdot x + 1)_*} \cdot \sqrt{(x \cdot x + 1)_*}}}\]
  5. Applied associate-/r*15.4

    \[\leadsto \color{blue}{\frac{\frac{x}{\sqrt{(x \cdot x + 1)_*}}}{\sqrt{(x \cdot x + 1)_*}}}\]
  6. Using strategy rm
  7. Applied *-un-lft-identity15.4

    \[\leadsto \frac{\frac{x}{\sqrt{(x \cdot x + 1)_*}}}{\color{blue}{1 \cdot \sqrt{(x \cdot x + 1)_*}}}\]
  8. Applied add-cube-cbrt16.1

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

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

    \[\leadsto \color{blue}{\left(\sqrt[3]{\frac{x}{\sqrt{1^2 + x^2}^*}} \cdot \sqrt[3]{\frac{x}{\sqrt{1^2 + x^2}^*}}\right)} \cdot \frac{\sqrt[3]{\frac{x}{\sqrt{(x \cdot x + 1)_*}}}}{\sqrt{(x \cdot x + 1)_*}}\]
  11. Simplified0.7

    \[\leadsto \left(\sqrt[3]{\frac{x}{\sqrt{1^2 + x^2}^*}} \cdot \sqrt[3]{\frac{x}{\sqrt{1^2 + x^2}^*}}\right) \cdot \color{blue}{\frac{\sqrt[3]{\frac{x}{\sqrt{1^2 + x^2}^*}}}{\sqrt{1^2 + x^2}^*}}\]
  12. Final simplification0.7

    \[\leadsto \left(\sqrt[3]{\frac{x}{\sqrt{1^2 + x^2}^*}} \cdot \sqrt[3]{\frac{x}{\sqrt{1^2 + x^2}^*}}\right) \cdot \frac{\sqrt[3]{\frac{x}{\sqrt{1^2 + x^2}^*}}}{\sqrt{1^2 + x^2}^*}\]

Runtime

Time bar (total: 9.2s)Debug logProfile

BaselineHerbieOracleSpan%
Regimes0.70.70.00.70%
herbie shell --seed 2018295 +o rules:numerics
(FPCore (x)
  :name "x / (x^2 + 1)"

  :herbie-target
  (/ 1 (+ x (/ 1 x)))

  (/ x (+ (* x x) 1)))