Group: | Mathematical Functions |
Topic: | Exponential and Logarithmic Functions |
See also: | exp expm1 log log10 |
Function: | log1p | |
Description: | log1p computes the natural logarithm of (1+x) accurately even for tiny x. |
Usage: | z = log1p (x) | |
Input: | ||
x | array | |
Output: | ||
z | array |
log1p(0:5)
Contents of log1p [1,] 0 [2,] 0.69315 [3,] 1.0986 [4,] 1.3863 [5,] 1.6094 [6,] 1.7918
expm1(0:5)
Contents of expm1 [1,] 0 [2,] 1.7183 [3,] 6.3891 [4,] 19.086 [5,] 53.598 [6,] 147.41