\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r875582 = x;
double r875583 = y;
double r875584 = r875582 - r875583;
double r875585 = r875584 / r875582;
return r875585;
}
double f(double x, double y) {
double r875586 = 1.0;
double r875587 = y;
double r875588 = x;
double r875589 = r875587 / r875588;
double r875590 = r875586 - r875589;
return r875590;
}




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