\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))));
}



Bits error versus x
Results
Initial program 1.9
Final simplification1.9
herbie shell --seed 2020152
(FPCore (x)
:name "(expm1 (log1p x))"
:precision binary64
(expm1 (log1p x)))