\frac{x - y}{x + y}\frac{x}{x + y} - \frac{y}{x + y}double f(double x, double y) {
double r577787 = x;
double r577788 = y;
double r577789 = r577787 - r577788;
double r577790 = r577787 + r577788;
double r577791 = r577789 / r577790;
return r577791;
}
double f(double x, double y) {
double r577792 = x;
double r577793 = y;
double r577794 = r577792 + r577793;
double r577795 = r577792 / r577794;
double r577796 = r577793 / r577794;
double r577797 = r577795 - r577796;
return r577797;
}




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