# log1p {#log1p}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#syntax}

`log1p(X)`

## Arguments {#arguments}

**X** is a scalar/vector/matrix/table.

## Details {#details}

Return log\(1+X\).

## Examples {#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|

