\frac{x - y}{2.0 - \left(x + y\right)}\frac{x - y}{\left(2.0 - x\right) - y}double f(double x, double y) {
double r27963349 = x;
double r27963350 = y;
double r27963351 = r27963349 - r27963350;
double r27963352 = 2.0;
double r27963353 = r27963349 + r27963350;
double r27963354 = r27963352 - r27963353;
double r27963355 = r27963351 / r27963354;
return r27963355;
}
double f(double x, double y) {
double r27963356 = x;
double r27963357 = y;
double r27963358 = r27963356 - r27963357;
double r27963359 = 2.0;
double r27963360 = r27963359 - r27963356;
double r27963361 = r27963360 - r27963357;
double r27963362 = r27963358 / r27963361;
return r27963362;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied associate--r+0.0
rmApplied clear-num0.1
rmApplied div-sub0.1
rmApplied div-inv0.1
Applied div-inv0.2
Applied distribute-rgt-out--0.2
Applied associate-/r*0.2
Simplified0.0
Final simplification0.0
herbie shell --seed 2019158 +o rules:numerics
(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))))