\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r632816 = x;
double r632817 = y;
double r632818 = r632816 - r632817;
double r632819 = r632818 / r632816;
return r632819;
}
double f(double x, double y) {
double r632820 = 1.0;
double r632821 = y;
double r632822 = x;
double r632823 = r632821 / r632822;
double r632824 = r632820 - r632823;
return r632824;
}




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