\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 r29743 = f;
double r29744 = n;
double r29745 = r29743 + r29744;
double r29746 = -r29745;
double r29747 = r29743 - r29744;
double r29748 = r29746 / r29747;
return r29748;
}
double f(double f, double n) {
double r29749 = f;
double r29750 = n;
double r29751 = r29749 + r29750;
double r29752 = -r29751;
double r29753 = r29749 - r29750;
double r29754 = r29752 / r29753;
double r29755 = exp(r29754);
double r29756 = log(r29755);
return r29756;
}



Bits error versus f



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