\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r657404 = x;
double r657405 = y;
double r657406 = r657404 - r657405;
double r657407 = r657406 / r657404;
return r657407;
}
double f(double x, double y) {
double r657408 = 1.0;
double r657409 = y;
double r657410 = x;
double r657411 = r657409 / r657410;
double r657412 = r657408 - r657411;
return r657412;
}




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