\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r877467 = x;
double r877468 = y;
double r877469 = r877467 - r877468;
double r877470 = r877469 / r877467;
return r877470;
}
double f(double x, double y) {
double r877471 = 1.0;
double r877472 = y;
double r877473 = x;
double r877474 = r877472 / r877473;
double r877475 = r877471 - r877474;
return r877475;
}




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