\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r657430 = x;
double r657431 = y;
double r657432 = r657430 - r657431;
double r657433 = r657432 / r657430;
return r657433;
}
double f(double x, double y) {
double r657434 = 1.0;
double r657435 = y;
double r657436 = x;
double r657437 = r657435 / r657436;
double r657438 = r657434 - r657437;
return r657438;
}




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