\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 r833131 = x;
double r833132 = y;
double r833133 = r833131 - r833132;
double r833134 = r833131 + r833132;
double r833135 = r833133 / r833134;
return r833135;
}
double f(double x, double y) {
double r833136 = x;
double r833137 = y;
double r833138 = r833136 - r833137;
double r833139 = r833136 + r833137;
double r833140 = r833138 / r833139;
double r833141 = exp(r833140);
double r833142 = sqrt(r833141);
double r833143 = log(r833142);
double r833144 = 0.5;
double r833145 = r833144 * r833140;
double r833146 = r833143 + r833145;
return r833146;
}




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 +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)))