\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r950599 = x;
double r950600 = y;
double r950601 = r950599 - r950600;
double r950602 = r950601 / r950599;
return r950602;
}
double f(double x, double y) {
double r950603 = 1.0;
double r950604 = y;
double r950605 = x;
double r950606 = r950604 / r950605;
double r950607 = r950603 - r950606;
return r950607;
}




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
Final simplification0.0
herbie shell --seed 2020060
(FPCore (x y)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, E"
:precision binary64
:herbie-target
(- 1 (/ y x))
(/ (- x y) x))