\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r37714752 = x;
double r37714753 = y;
double r37714754 = r37714752 - r37714753;
double r37714755 = r37714754 / r37714752;
return r37714755;
}
double f(double x, double y) {
double r37714756 = 1.0;
double r37714757 = y;
double r37714758 = x;
double r37714759 = r37714757 / r37714758;
double r37714760 = r37714756 - r37714759;
return r37714760;
}




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