\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 r19450 = f;
double r19451 = n;
double r19452 = r19450 + r19451;
double r19453 = -r19452;
double r19454 = r19450 - r19451;
double r19455 = r19453 / r19454;
return r19455;
}
double f(double f, double n) {
double r19456 = f;
double r19457 = n;
double r19458 = r19456 + r19457;
double r19459 = -r19458;
double r19460 = r19456 - r19457;
double r19461 = r19459 / r19460;
double r19462 = exp(r19461);
double r19463 = log(r19462);
return r19463;
}



Bits error versus f



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