\frac{-\left(f + n\right)}{f - n}\log \left({e}^{\left(\frac{f + n}{n - f}\right)}\right)(FPCore (f n) :precision binary64 (/ (- (+ f n)) (- f n)))
(FPCore (f n) :precision binary64 (log (pow E (/ (+ f n) (- n f)))))
double code(double f, double n) {
return (((double) -(((double) (f + n)))) / ((double) (f - n)));
}
double code(double f, double n) {
return ((double) log(((double) pow(((double) M_E), (((double) (f + n)) / ((double) (n - f)))))));
}



Bits error versus f



Bits error versus n
Results
Initial program 0.0
Simplified0.0
rmApplied add-log-exp_binary640.0
rmApplied *-un-lft-identity_binary640.0
Applied *-un-lft-identity_binary640.0
Applied times-frac_binary640.0
Applied exp-prod_binary640.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2020204
(FPCore (f n)
:name "subtraction fraction"
:precision binary64
(/ (- (+ f n)) (- f n)))