\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 r64 = f;
double r65 = n;
double r66 = r64 + r65;
double r67 = -r66;
double r68 = r64 - r65;
double r69 = r67 / r68;
return r69;
}
double f(double f, double n) {
double r70 = f;
double r71 = n;
double r72 = r70 + r71;
double r73 = -r72;
double r74 = r70 - r71;
double r75 = r73 / r74;
double r76 = exp(r75);
double r77 = log(r76);
return r77;
}



Bits error versus f



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