\frac{-\left(f + n\right)}{f - n}\log \left(\frac{1}{{e}^{\left(\frac{n + f}{f - n}\right)}}\right)double f(double f, double n) {
double r495612 = f;
double r495613 = n;
double r495614 = r495612 + r495613;
double r495615 = -r495614;
double r495616 = r495612 - r495613;
double r495617 = r495615 / r495616;
return r495617;
}
double f(double f, double n) {
double r495618 = 1.0;
double r495619 = exp(1.0);
double r495620 = n;
double r495621 = f;
double r495622 = r495620 + r495621;
double r495623 = r495621 - r495620;
double r495624 = r495622 / r495623;
double r495625 = pow(r495619, r495624);
double r495626 = r495618 / r495625;
double r495627 = log(r495626);
return r495627;
}



Bits error versus f



Bits error versus n
Results
Initial program 0.0
rmApplied add-log-exp0.0
rmApplied distribute-frac-neg0.0
Applied exp-neg0.0
rmApplied *-un-lft-identity0.0
Applied *-un-lft-identity0.0
Applied distribute-lft-out--0.0
Applied *-un-lft-identity0.0
Applied times-frac0.0
Applied exp-prod0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019143 +o rules:numerics
(FPCore (f n)
:name "subtraction fraction"
(/ (- (+ f n)) (- f n)))