\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r518231 = x;
double r518232 = y;
double r518233 = r518231 - r518232;
double r518234 = r518233 / r518231;
return r518234;
}
double f(double x, double y) {
double r518235 = 1.0;
double r518236 = y;
double r518237 = x;
double r518238 = r518236 / r518237;
double r518239 = r518235 - r518238;
return r518239;
}




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