Average Error: 0.0 → 0.0
Time: 14.2s
Precision: 64
\[\frac{x - y}{2.0 - \left(x + y\right)}\]
\[\frac{x - y}{2.0 - \left(y + x\right)}\]
\frac{x - y}{2.0 - \left(x + y\right)}
\frac{x - y}{2.0 - \left(y + x\right)}
double f(double x, double y) {
        double r41554047 = x;
        double r41554048 = y;
        double r41554049 = r41554047 - r41554048;
        double r41554050 = 2.0;
        double r41554051 = r41554047 + r41554048;
        double r41554052 = r41554050 - r41554051;
        double r41554053 = r41554049 / r41554052;
        return r41554053;
}

double f(double x, double y) {
        double r41554054 = x;
        double r41554055 = y;
        double r41554056 = r41554054 - r41554055;
        double r41554057 = 2.0;
        double r41554058 = r41554055 + r41554054;
        double r41554059 = r41554057 - r41554058;
        double r41554060 = r41554056 / r41554059;
        return r41554060;
}

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{x}{2.0 - \left(x + y\right)} - \frac{y}{2.0 - \left(x + y\right)}\]

Derivation

  1. Initial program 0.0

    \[\frac{x - y}{2.0 - \left(x + y\right)}\]
  2. Final simplification0.0

    \[\leadsto \frac{x - y}{2.0 - \left(y + x\right)}\]

Reproduce

herbie shell --seed 2019163 
(FPCore (x y)
  :name "Data.Colour.RGB:hslsv from colour-2.3.3, C"

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

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