Average Error: 0.6 → 0.6
Time: 2.0s
Precision: binary64
\[\log \left(1 + e^{x}\right)\]
\[\log \left(1 + e^{x}\right)\]
\log \left(1 + e^{x}\right)
\log \left(1 + e^{x}\right)
double code(double x) {
	return ((double) log(((double) (1.0 + ((double) exp(x))))));
}
double code(double x) {
	return ((double) log(((double) (1.0 + ((double) exp(x))))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.6

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

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

Reproduce

herbie shell --seed 2020152 
(FPCore (x)
  :name "(log (+ 1 (exp x)))"
  :precision binary64
  (log (+ 1.0 (exp x))))