\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r788967 = x;
double r788968 = y;
double r788969 = r788967 - r788968;
double r788970 = r788969 / r788967;
return r788970;
}
double f(double x, double y) {
double r788971 = 1.0;
double r788972 = y;
double r788973 = x;
double r788974 = r788972 / r788973;
double r788975 = r788971 - r788974;
return r788975;
}




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