\frac{x - y}{x + y}\frac{x}{x + y} - \frac{y}{x + y}double f(double x, double y) {
double r878086 = x;
double r878087 = y;
double r878088 = r878086 - r878087;
double r878089 = r878086 + r878087;
double r878090 = r878088 / r878089;
return r878090;
}
double f(double x, double y) {
double r878091 = x;
double r878092 = y;
double r878093 = r878091 + r878092;
double r878094 = r878091 / r878093;
double r878095 = r878092 / r878093;
double r878096 = r878094 - r878095;
return r878096;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied div-sub0.0
Final simplification0.0
herbie shell --seed 2020047
(FPCore (x y)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, D"
:precision binary64
:herbie-target
(- (/ x (+ x y)) (/ y (+ x y)))
(/ (- x y) (+ x y)))