Average Error: 0.4 → 0.4
Time: 588.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.4

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

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

Reproduce

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