\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 r31089 = f;
double r31090 = n;
double r31091 = r31089 + r31090;
double r31092 = -r31091;
double r31093 = r31089 - r31090;
double r31094 = r31092 / r31093;
return r31094;
}
double f(double f, double n) {
double r31095 = f;
double r31096 = n;
double r31097 = r31095 + r31096;
double r31098 = -r31097;
double r31099 = r31095 - r31096;
double r31100 = r31098 / r31099;
double r31101 = exp(r31100);
double r31102 = log(r31101);
return r31102;
}



Bits error versus f



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