\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r50777054 = x;
double r50777055 = y;
double r50777056 = r50777054 - r50777055;
double r50777057 = r50777056 / r50777054;
return r50777057;
}
double f(double x, double y) {
double r50777058 = 1.0;
double r50777059 = y;
double r50777060 = x;
double r50777061 = r50777059 / r50777060;
double r50777062 = r50777058 - r50777061;
return r50777062;
}




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