Average Error: 0.0 → 0.1
Time: 3.5s
Precision: 64
\[\frac{x + y}{x - y}\]
\[\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}}\]
\frac{x + y}{x - y}
\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}}
double f(double x, double y) {
        double r488077 = x;
        double r488078 = y;
        double r488079 = r488077 + r488078;
        double r488080 = r488077 - r488078;
        double r488081 = r488079 / r488080;
        return r488081;
}

double f(double x, double y) {
        double r488082 = x;
        double r488083 = y;
        double r488084 = r488082 + r488083;
        double r488085 = r488082 - r488083;
        double r488086 = r488084 / r488085;
        double r488087 = cbrt(r488086);
        double r488088 = r488087 * r488087;
        double r488089 = r488088 * r488087;
        return r488089;
}

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.1
\[\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. Final simplification0.1

    \[\leadsto \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}}\]

Reproduce

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

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

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