Average Error: 58.2 → 0
Time: 3.0s
Precision: binary64
\[\log \left(e^{x}\right)\]
\[x\]
\log \left(e^{x}\right)
x
double code(double x) {
	return ((double) log(((double) exp(x))));
}
double code(double x) {
	return x;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 58.2

    \[\log \left(e^{x}\right)\]
  2. Simplified0

    \[\leadsto \color{blue}{x}\]
  3. Final simplification0

    \[\leadsto x\]

Reproduce

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