\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r820856 = x;
double r820857 = y;
double r820858 = r820856 - r820857;
double r820859 = r820858 / r820856;
return r820859;
}
double f(double x, double y) {
double r820860 = 1.0;
double r820861 = y;
double r820862 = x;
double r820863 = r820861 / r820862;
double r820864 = r820860 - r820863;
return r820864;
}




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