\frac{x - y}{2 - \left(x + y\right)}\left(x - y\right) \cdot \frac{1}{2 - \left(x + y\right)}double f(double x, double y) {
double r915274 = x;
double r915275 = y;
double r915276 = r915274 - r915275;
double r915277 = 2.0;
double r915278 = r915274 + r915275;
double r915279 = r915277 - r915278;
double r915280 = r915276 / r915279;
return r915280;
}
double f(double x, double y) {
double r915281 = x;
double r915282 = y;
double r915283 = r915281 - r915282;
double r915284 = 1.0;
double r915285 = 2.0;
double r915286 = r915281 + r915282;
double r915287 = r915285 - r915286;
double r915288 = r915284 / r915287;
double r915289 = r915283 * r915288;
return r915289;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.1 |
Initial program 0.0
rmApplied add-cbrt-cube34.6
Applied add-cbrt-cube42.2
Applied cbrt-undiv42.2
Simplified6.6
rmApplied div-inv6.6
Applied unpow-prod-down42.2
Applied cbrt-prod42.4
Simplified34.4
Simplified0.1
Final simplification0.1
herbie shell --seed 2020021
(FPCore (x y)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, C"
:precision binary64
:herbie-target
(- (/ x (- 2 (+ x y))) (/ y (- 2 (+ x y))))
(/ (- x y) (- 2 (+ x y))))