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

# log(_:)

Returns the natural logarithm of each element in a vector.

## Declaration

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

## See Also

### Exponential and Logarithmic Functions

- [exp(_:)](simd/exp(_:)-8lp9u.md)
- [exp2(_:)](simd/exp2(_:)-4tmv0.md)
- [exp10(_:)](simd/exp10(_:)-7ddho.md)
- [expm1(_:)](simd/expm1(_:)-4f45.md)
- [log2(_:)](simd/log2(_:)-5gt2x.md)
- [log10(_:)](simd/log10(_:)-2lowj.md)
- [log1p(_:)](simd/log1p(_:)-77wue.md)
