\frac{x - y}{x + y}\frac{1}{\frac{x + y}{x}} - \frac{y}{x + y}double f(double x, double y) {
double r791219 = x;
double r791220 = y;
double r791221 = r791219 - r791220;
double r791222 = r791219 + r791220;
double r791223 = r791221 / r791222;
return r791223;
}
double f(double x, double y) {
double r791224 = 1.0;
double r791225 = x;
double r791226 = y;
double r791227 = r791225 + r791226;
double r791228 = r791227 / r791225;
double r791229 = r791224 / r791228;
double r791230 = r791226 / r791227;
double r791231 = r791229 - r791230;
return r791231;
}




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
rmApplied clear-num0.0
Final simplification0.0
herbie shell --seed 2020039
(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)))