\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r41251448 = x;
double r41251449 = y;
double r41251450 = r41251448 - r41251449;
double r41251451 = r41251450 / r41251448;
return r41251451;
}
double f(double x, double y) {
double r41251452 = 1.0;
double r41251453 = y;
double r41251454 = x;
double r41251455 = r41251453 / r41251454;
double r41251456 = r41251452 - r41251455;
return r41251456;
}




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