\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 r20674 = f;
double r20675 = n;
double r20676 = r20674 + r20675;
double r20677 = -r20676;
double r20678 = r20674 - r20675;
double r20679 = r20677 / r20678;
return r20679;
}
double f(double f, double n) {
double r20680 = f;
double r20681 = n;
double r20682 = r20680 + r20681;
double r20683 = -r20682;
double r20684 = r20680 - r20681;
double r20685 = r20683 / r20684;
double r20686 = exp(r20685);
double r20687 = log(r20686);
return r20687;
}



Bits error versus f



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