\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r37722024 = x;
double r37722025 = y;
double r37722026 = r37722024 - r37722025;
double r37722027 = r37722026 / r37722024;
return r37722027;
}
double f(double x, double y) {
double r37722028 = 1.0;
double r37722029 = y;
double r37722030 = x;
double r37722031 = r37722029 / r37722030;
double r37722032 = r37722028 - r37722031;
return r37722032;
}




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