Average Error: 1.9 → 1.9
Time: 605.0ms
Precision: binary64
\[\mathsf{expm1}\left(\mathsf{log1p}\left(x\right)\right)\]
\[\mathsf{expm1}\left(\mathsf{log1p}\left(x\right)\right)\]
\mathsf{expm1}\left(\mathsf{log1p}\left(x\right)\right)
\mathsf{expm1}\left(\mathsf{log1p}\left(x\right)\right)
double code(double x) {
	return ((double) expm1(((double) log1p(x))));
}
double code(double x) {
	return ((double) expm1(((double) log1p(x))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 1.9

    \[\mathsf{expm1}\left(\mathsf{log1p}\left(x\right)\right)\]
  2. Final simplification1.9

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

Reproduce

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