\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r869190 = x;
double r869191 = y;
double r869192 = r869190 - r869191;
double r869193 = r869192 / r869190;
return r869193;
}
double f(double x, double y) {
double r869194 = 1.0;
double r869195 = y;
double r869196 = x;
double r869197 = r869195 / r869196;
double r869198 = r869194 - r869197;
return r869198;
}




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