\frac{x - y}{x + y}\log \left(e^{\frac{\frac{x}{x + y} \cdot \frac{x}{x + y} - \frac{y}{x + y} \cdot \frac{y}{x + y}}{\frac{x}{x + y} + \frac{y}{x + y}}}\right)double f(double x, double y) {
double r944527 = x;
double r944528 = y;
double r944529 = r944527 - r944528;
double r944530 = r944527 + r944528;
double r944531 = r944529 / r944530;
return r944531;
}
double f(double x, double y) {
double r944532 = x;
double r944533 = y;
double r944534 = r944532 + r944533;
double r944535 = r944532 / r944534;
double r944536 = r944535 * r944535;
double r944537 = r944533 / r944534;
double r944538 = r944537 * r944537;
double r944539 = r944536 - r944538;
double r944540 = r944535 + r944537;
double r944541 = r944539 / r944540;
double r944542 = exp(r944541);
double r944543 = log(r944542);
return r944543;
}




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 div-sub0.0
rmApplied flip--0.0
Final simplification0.0
herbie shell --seed 2019354 +o rules:numerics
(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)))