Average Error: 0.0 → 0.0
Time: 11.0s
Precision: 64
\[\frac{x + y}{x - y}\]
\[{\left(\frac{y + x}{x - y} \cdot \frac{y + x}{x - y}\right)}^{\frac{1}{3}} \cdot \sqrt[3]{\frac{y + x}{x - y}}\]
\frac{x + y}{x - y}
{\left(\frac{y + x}{x - y} \cdot \frac{y + x}{x - y}\right)}^{\frac{1}{3}} \cdot \sqrt[3]{\frac{y + x}{x - y}}
double f(double x, double y) {
        double r27265454 = x;
        double r27265455 = y;
        double r27265456 = r27265454 + r27265455;
        double r27265457 = r27265454 - r27265455;
        double r27265458 = r27265456 / r27265457;
        return r27265458;
}

double f(double x, double y) {
        double r27265459 = y;
        double r27265460 = x;
        double r27265461 = r27265459 + r27265460;
        double r27265462 = r27265460 - r27265459;
        double r27265463 = r27265461 / r27265462;
        double r27265464 = r27265463 * r27265463;
        double r27265465 = 0.3333333333333333;
        double r27265466 = pow(r27265464, r27265465);
        double r27265467 = cbrt(r27265463);
        double r27265468 = r27265466 * r27265467;
        return r27265468;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.0
Target0.0
Herbie0.0
\[\frac{1}{\frac{x}{x + y} - \frac{y}{x + y}}\]

Derivation

  1. Initial program 0.0

    \[\frac{x + y}{x - y}\]
  2. Using strategy rm
  3. Applied add-cube-cbrt0.1

    \[\leadsto \color{blue}{\left(\sqrt[3]{\frac{x + y}{x - y}} \cdot \sqrt[3]{\frac{x + y}{x - y}}\right) \cdot \sqrt[3]{\frac{x + y}{x - y}}}\]
  4. Using strategy rm
  5. Applied pow1/331.8

    \[\leadsto \left(\sqrt[3]{\frac{x + y}{x - y}} \cdot \color{blue}{{\left(\frac{x + y}{x - y}\right)}^{\frac{1}{3}}}\right) \cdot \sqrt[3]{\frac{x + y}{x - y}}\]
  6. Applied pow1/331.8

    \[\leadsto \left(\color{blue}{{\left(\frac{x + y}{x - y}\right)}^{\frac{1}{3}}} \cdot {\left(\frac{x + y}{x - y}\right)}^{\frac{1}{3}}\right) \cdot \sqrt[3]{\frac{x + y}{x - y}}\]
  7. Applied pow-prod-down0.0

    \[\leadsto \color{blue}{{\left(\frac{x + y}{x - y} \cdot \frac{x + y}{x - y}\right)}^{\frac{1}{3}}} \cdot \sqrt[3]{\frac{x + y}{x - y}}\]
  8. Final simplification0.0

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

Reproduce

herbie shell --seed 2019171 
(FPCore (x y)
  :name "Linear.Projection:perspective from linear-1.19.1.3, A"

  :herbie-target
  (/ 1.0 (- (/ x (+ x y)) (/ y (+ x y))))

  (/ (+ x y) (- x y)))