\frac{x - y}{x + y}\frac{x}{x + y} + \left(-\frac{y}{x + y}\right)double f(double x, double y) {
double r543157 = x;
double r543158 = y;
double r543159 = r543157 - r543158;
double r543160 = r543157 + r543158;
double r543161 = r543159 / r543160;
return r543161;
}
double f(double x, double y) {
double r543162 = x;
double r543163 = y;
double r543164 = r543162 + r543163;
double r543165 = r543162 / r543164;
double r543166 = r543163 / r543164;
double r543167 = -r543166;
double r543168 = r543165 + r543167;
return r543168;
}




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
rmApplied add-log-exp0.0
Final simplification0.0
herbie shell --seed 2019291
(FPCore (x y)
:name "Data.Colour.RGB:hslsv from colour-2.3.3, D"
:precision binary64
:herbie-target
(- (/ x (+ x y)) (/ y (+ x y)))
(/ (- x y) (+ x y)))