\frac{x - y}{x + y}\frac{1}{\frac{x + y}{x}} - \frac{y}{x + y}double f(double x, double y) {
double r781405 = x;
double r781406 = y;
double r781407 = r781405 - r781406;
double r781408 = r781405 + r781406;
double r781409 = r781407 / r781408;
return r781409;
}
double f(double x, double y) {
double r781410 = 1.0;
double r781411 = x;
double r781412 = y;
double r781413 = r781411 + r781412;
double r781414 = r781413 / r781411;
double r781415 = r781410 / r781414;
double r781416 = r781412 / r781413;
double r781417 = r781415 - r781416;
return r781417;
}




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 +o rules:numerics
(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)))