\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r4749 = x;
double r4750 = y;
double r4751 = r4749 - r4750;
double r4752 = r4751 / r4749;
return r4752;
}
double f(double x, double y) {
double r4753 = 1.0;
double r4754 = y;
double r4755 = x;
double r4756 = r4754 / r4755;
double r4757 = r4753 - r4756;
return r4757;
}




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