\frac{-\left(f + n\right)}{f - n}\log \left(e^{\frac{-\left(f + n\right)}{f - n}}\right)double f(double f, double n) {
double r24992 = f;
double r24993 = n;
double r24994 = r24992 + r24993;
double r24995 = -r24994;
double r24996 = r24992 - r24993;
double r24997 = r24995 / r24996;
return r24997;
}
double f(double f, double n) {
double r24998 = f;
double r24999 = n;
double r25000 = r24998 + r24999;
double r25001 = -r25000;
double r25002 = r24998 - r24999;
double r25003 = r25001 / r25002;
double r25004 = exp(r25003);
double r25005 = log(r25004);
return r25005;
}



Bits error versus f



Bits error versus n
Results
Initial program 0.0
rmApplied add-log-exp0.0
Final simplification0.0
herbie shell --seed 2019323
(FPCore (f n)
:name "subtraction fraction"
:precision binary64
(/ (- (+ f n)) (- f n)))