\frac{x - y}{x}1 - \frac{y}{x}double f(double x, double y) {
double r36200932 = x;
double r36200933 = y;
double r36200934 = r36200932 - r36200933;
double r36200935 = r36200934 / r36200932;
return r36200935;
}
double f(double x, double y) {
double r36200936 = 1.0;
double r36200937 = y;
double r36200938 = x;
double r36200939 = r36200937 / r36200938;
double r36200940 = r36200936 - r36200939;
return r36200940;
}




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