Computes the natural logarithm of 1 + exp(x).
1 + exp(x)
input value
function value
var v = log1pexp( 1.1 ); // returns ~1.387
var v = log1pexp( 100.0 ); // returns 100.0
var v = log1pexp( NaN ); // returns NaN
Computes the natural logarithm of
1 + exp(x)
.