\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 r35290 = f;
double r35291 = n;
double r35292 = r35290 + r35291;
double r35293 = -r35292;
double r35294 = r35290 - r35291;
double r35295 = r35293 / r35294;
return r35295;
}
double f(double f, double n) {
double r35296 = f;
double r35297 = n;
double r35298 = r35296 + r35297;
double r35299 = -r35298;
double r35300 = r35296 - r35297;
double r35301 = r35299 / r35300;
double r35302 = exp(r35301);
double r35303 = log(r35302);
return r35303;
}



Bits error versus f



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