\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r549725 = x;
double r549726 = y;
double r549727 = r549725 - r549726;
double r549728 = r549727 / r549725;
return r549728;
}
double f(double x, double y) {
double r549729 = 1.0;
double r549730 = y;
double r549731 = x;
double r549732 = r549730 / r549731;
double r549733 = r549729 - r549732;
return r549733;
}




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))