\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 r24564 = f;
double r24565 = n;
double r24566 = r24564 + r24565;
double r24567 = -r24566;
double r24568 = r24564 - r24565;
double r24569 = r24567 / r24568;
return r24569;
}
double f(double f, double n) {
double r24570 = f;
double r24571 = n;
double r24572 = r24570 + r24571;
double r24573 = -r24572;
double r24574 = r24570 - r24571;
double r24575 = r24573 / r24574;
double r24576 = exp(r24575);
double r24577 = log(r24576);
return r24577;
}



Bits error versus f



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