\log \left(e^{a} + e^{b}\right)\log \left(1 + e^{a}\right) + \frac{b}{1 + e^{a}}(FPCore (a b) :precision binary64 (log (+ (exp a) (exp b))))
(FPCore (a b) :precision binary64 (+ (log (+ 1.0 (exp a))) (/ b (+ 1.0 (exp a)))))
double code(double a, double b) {
return log(exp(a) + exp(b));
}
double code(double a, double b) {
return log(1.0 + exp(a)) + (b / (1.0 + exp(a)));
}



Bits error versus a



Bits error versus b
Results
Initial program 29.9
Taylor expanded around 0 1.1
Simplified1.1
Final simplification1.1
herbie shell --seed 2021042
(FPCore (a b)
:name "symmetry log of sum of exp"
:precision binary64
(log (+ (exp a) (exp b))))