\frac{x}{x + y}\mathsf{log1p}\left(\mathsf{expm1}\left(\frac{x}{x + y}\right)\right)double f(double x, double y) {
double r238100 = x;
double r238101 = y;
double r238102 = r238100 + r238101;
double r238103 = r238100 / r238102;
return r238103;
}
double f(double x, double y) {
double r238104 = x;
double r238105 = y;
double r238106 = r238104 + r238105;
double r238107 = r238104 / r238106;
double r238108 = expm1(r238107);
double r238109 = log1p(r238108);
return r238109;
}



Bits error versus x



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