\frac{x - y}{x + y}\log \left(\sqrt{e^{\frac{x - y}{x + y}}}\right) + \frac{1}{2} \cdot \frac{x - y}{x + y}double f(double x, double y) {
double r858246 = x;
double r858247 = y;
double r858248 = r858246 - r858247;
double r858249 = r858246 + r858247;
double r858250 = r858248 / r858249;
return r858250;
}
double f(double x, double y) {
double r858251 = x;
double r858252 = y;
double r858253 = r858251 - r858252;
double r858254 = r858251 + r858252;
double r858255 = r858253 / r858254;
double r858256 = exp(r858255);
double r858257 = sqrt(r858256);
double r858258 = log(r858257);
double r858259 = 0.5;
double r858260 = r858259 * r858255;
double r858261 = r858258 + r858260;
return r858261;
}




Bits error versus x




Bits error versus y
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
rmApplied add-log-exp0.0
rmApplied add-sqr-sqrt0.0
Applied log-prod0.0
rmApplied pow10.0
Applied sqrt-pow10.0
Applied log-pow0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020001
(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)))