\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r869849 = x;
double r869850 = y;
double r869851 = r869849 - r869850;
double r869852 = r869851 / r869849;
return r869852;
}
double f(double x, double y) {
double r869853 = 1.0;
double r869854 = y;
double r869855 = x;
double r869856 = r869854 / r869855;
double r869857 = r869853 - r869856;
return r869857;
}




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