\frac{x - y}{x + y}\frac{x}{y + x} - \frac{y}{y + x}double f(double x, double y) {
double r533367 = x;
double r533368 = y;
double r533369 = r533367 - r533368;
double r533370 = r533367 + r533368;
double r533371 = r533369 / r533370;
return r533371;
}
double f(double x, double y) {
double r533372 = x;
double r533373 = y;
double r533374 = r533373 + r533372;
double r533375 = r533372 / r533374;
double r533376 = r533373 / r533374;
double r533377 = r533375 - r533376;
return r533377;
}




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
Simplified0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019196
(FPCore (x y)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, D"
:herbie-target
(- (/ x (+ x y)) (/ y (+ x y)))
(/ (- x y) (+ x y)))