log1pexp | R Documentation |
Computes the natural logarithm of 1 plus the exponential of the input, to handle large inputs.
log1pexp(x)
x |
(vector): A numeric vector of inputs. |
(vector): A numeric vector where each element is the result of log(1 + exp(x)).
x <- c(-1, 0, 1, 10, 100)
log1pexp(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.