\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 r826959 = x;
double r826960 = y;
double r826961 = r826959 - r826960;
double r826962 = 2.0;
double r826963 = r826959 + r826960;
double r826964 = r826962 - r826963;
double r826965 = r826961 / r826964;
return r826965;
}
double f(double x, double y) {
double r826966 = x;
double r826967 = y;
double r826968 = r826966 - r826967;
double r826969 = 1.0;
double r826970 = 2.0;
double r826971 = r826966 + r826967;
double r826972 = r826970 - r826971;
double r826973 = r826969 / r826972;
double r826974 = r826968 * r826973;
return r826974;
}




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 +o rules:numerics
(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))))