Average Error: 0.5 → 0.5
Time: 582.0ms
Precision: binary64
\[\mathsf{log1p}\left(e^{x}\right)\]
\[\mathsf{log1p}\left(e^{x}\right)\]
\mathsf{log1p}\left(e^{x}\right)
\mathsf{log1p}\left(e^{x}\right)
double code(double x) {
	return ((double) log1p(((double) exp(x))));
}
double code(double x) {
	return ((double) log1p(((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.5

    \[\mathsf{log1p}\left(e^{x}\right)\]
  2. Final simplification0.5

    \[\leadsto \mathsf{log1p}\left(e^{x}\right)\]

Reproduce

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