\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r632026 = x;
double r632027 = y;
double r632028 = r632026 - r632027;
double r632029 = r632028 / r632026;
return r632029;
}
double f(double x, double y) {
double r632030 = 1.0;
double r632031 = y;
double r632032 = x;
double r632033 = r632031 / r632032;
double r632034 = r632030 - r632033;
return r632034;
}




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