Average Error: 0.0 → 0.0
Time: 37.1s
Precision: 64
\[\frac{x - y}{2 - \left(x + y\right)}\]
\[\frac{x - y}{2 - \left(y + x\right)}\]
\frac{x - y}{2 - \left(x + y\right)}
\frac{x - y}{2 - \left(y + x\right)}
double f(double x, double y) {
        double r40512003 = x;
        double r40512004 = y;
        double r40512005 = r40512003 - r40512004;
        double r40512006 = 2.0;
        double r40512007 = r40512003 + r40512004;
        double r40512008 = r40512006 - r40512007;
        double r40512009 = r40512005 / r40512008;
        return r40512009;
}

double f(double x, double y) {
        double r40512010 = x;
        double r40512011 = y;
        double r40512012 = r40512010 - r40512011;
        double r40512013 = 2.0;
        double r40512014 = r40512011 + r40512010;
        double r40512015 = r40512013 - r40512014;
        double r40512016 = r40512012 / r40512015;
        return r40512016;
}

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

Derivation

  1. Initial program 0.0

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

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

Reproduce

herbie shell --seed 2019168 
(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))))