Average Error: 29.6 → 29.6
Time: 2.7s
Precision: binary64
\[\log \left(e^{x} + e^{b}\right)\]
\[\log \left(e^{x} + e^{b}\right)\]
\log \left(e^{x} + e^{b}\right)
\log \left(e^{x} + e^{b}\right)
double code(double x, double b) {
	return ((double) log(((double) (((double) exp(x)) + ((double) exp(b))))));
}
double code(double x, double b) {
	return ((double) log(((double) (((double) exp(x)) + ((double) exp(b))))));
}

Error

Bits error versus x

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 29.6

    \[\log \left(e^{x} + e^{b}\right)\]
  2. Final simplification29.6

    \[\leadsto \log \left(e^{x} + e^{b}\right)\]

Reproduce

herbie shell --seed 2020153 
(FPCore (x b)
  :name "(log (+ (exp x) (exp b)))"
  :precision binary64
  (log (+ (exp x) (exp b))))