\frac{x - y}{x + y}\frac{x}{x + y} - \frac{y}{x + y}double f(double x, double y) {
double r1453309 = x;
double r1453310 = y;
double r1453311 = r1453309 - r1453310;
double r1453312 = r1453309 + r1453310;
double r1453313 = r1453311 / r1453312;
return r1453313;
}
double f(double x, double y) {
double r1453314 = x;
double r1453315 = y;
double r1453316 = r1453314 + r1453315;
double r1453317 = r1453314 / r1453316;
double r1453318 = r1453315 / r1453316;
double r1453319 = r1453317 - r1453318;
return r1453319;
}




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)))