\frac{x}{x + y}\mathsf{expm1}\left(\mathsf{log1p}\left(\frac{x}{x + y}\right)\right)double f(double x, double y) {
double r176823 = x;
double r176824 = y;
double r176825 = r176823 + r176824;
double r176826 = r176823 / r176825;
return r176826;
}
double f(double x, double y) {
double r176827 = x;
double r176828 = y;
double r176829 = r176827 + r176828;
double r176830 = r176827 / r176829;
double r176831 = log1p(r176830);
double r176832 = expm1(r176831);
return r176832;
}



Bits error versus x



Bits error versus y
Results
Initial program 0.0
rmApplied expm1-log1p-u0.0
Final simplification0.0
herbie shell --seed 2019304 +o rules:numerics
(FPCore (x y)
:name "AI.Clustering.Hierarchical.Internal:average from clustering-0.2.1, A"
:precision binary64
(/ x (+ x y)))