# ee.Number.log

Computes the natural logarithm of the input.

<br />

| Usage | Returns |
|---|---|
| `Number.log()` | Number |

| Argument | Type | Details |
|---|---|---|
| this: `input` | Number | The input value. |

## Examples

### Code Editor (JavaScript)

```javascript
print(ee.Number(Math.pow(Math.E, -1)).log());  // -1
print(ee.Number(1).log());  // 0
print(ee.Number(Math.E).log());  // 1
```
Python setup

See the [Python Environment](https://developers.google.com/earth-engine/guides/python_install) page for information on the Python API and using
`geemap` for interactive development.

```python
import ee
import geemap.core as geemap
```

### Colab (Python)

```python
import math

display(ee.Number(pow(math.e, -1)).log())  # -1
display(ee.Number(1).log())  # 0
display(ee.Number(math.e).log())  # 1
```