log1p

Syntax

log1p(X)

Parameters

X is a scalar/vector/matrix/table.

Details

Returns log(1+X).

Note:

DolphinDB log1p and numpy.log1p provide the same core functionality. The difference is that DolphinDB log1p accepts only one parameter, X, whereas numpy.log1p supports additional parameters such as out and where.

Examples

log1p(0);
// output: 0

log1p([0, e-1, pow(e,2)-1, pow(e,3)-1, NULL]);
// output: [0,1,2,3,]

log1p([0, e-1, pow(e,2)-1, pow(e,3)-1]$2:2);
#0 #1
0 2
1 3