\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 r422511 = f;
double r422512 = n;
double r422513 = r422511 + r422512;
double r422514 = -r422513;
double r422515 = r422511 - r422512;
double r422516 = r422514 / r422515;
return r422516;
}
double f(double f, double n) {
double r422517 = n;
double r422518 = f;
double r422519 = r422517 + r422518;
double r422520 = -r422519;
double r422521 = r422518 - r422517;
double r422522 = r422520 / r422521;
double r422523 = exp(r422522);
double r422524 = log(r422523);
return r422524;
}



Bits error versus f



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