\frac{-\left(f + n\right)}{f - n}\log \left(e^{\frac{-\left(n + f\right)}{f - n}}\right)double f(double f, double n) {
double r455634 = f;
double r455635 = n;
double r455636 = r455634 + r455635;
double r455637 = -r455636;
double r455638 = r455634 - r455635;
double r455639 = r455637 / r455638;
return r455639;
}
double f(double f, double n) {
double r455640 = n;
double r455641 = f;
double r455642 = r455640 + r455641;
double r455643 = -r455642;
double r455644 = r455641 - r455640;
double r455645 = r455643 / r455644;
double r455646 = exp(r455645);
double r455647 = log(r455646);
return r455647;
}



Bits error versus f



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