---
title: "log(_:)"
framework: simd
role: symbol
role_heading: Function
path: "simd/log(_:)-5bs8h"
---

# log(_:)

Returns the natural logarithm of each element in a vector.

## Declaration

```swift
func log(_ x: simd_float8) -> simd_float8
```

## See Also

### Exponential and Logarithmic Functions

- [exp(_:)](simd/exp(_:)-1pg0i.md)
- [exp2(_:)](simd/exp2(_:)-1n4s0.md)
- [exp10(_:)](simd/exp10(_:)-8kkzs.md)
- [expm1(_:)](simd/expm1(_:)-70odp.md)
- [log2(_:)](simd/log2(_:)-939d1.md)
- [log10(_:)](simd/log10(_:)-94fwu.md)
- [log1p(_:)](simd/log1p(_:)-7f7d8.md)
