\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r533325 = x;
double r533326 = y;
double r533327 = r533325 - r533326;
double r533328 = r533327 / r533325;
return r533328;
}
double f(double x, double y) {
double r533329 = 1.0;
double r533330 = y;
double r533331 = x;
double r533332 = r533330 / r533331;
double r533333 = r533329 - r533332;
return r533333;
}




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