\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r420931236 = x;
double r420931237 = y;
double r420931238 = r420931236 - r420931237;
double r420931239 = r420931238 / r420931236;
return r420931239;
}
double f(double x, double y) {
double r420931240 = 1.0;
double r420931241 = y;
double r420931242 = x;
double r420931243 = r420931241 / r420931242;
double r420931244 = r420931240 - r420931243;
return r420931244;
}




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