---
title: MLCArithmeticOperation.log2
framework: ML Compute
role: symbol
role_heading: Case
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+, tvOS 14.0+]
path: mlcompute/mlcarithmeticoperation/log2
---

# MLCArithmeticOperation.log2

Calculates the element-wise base 2 logarithm of the input.

## Declaration

```swift
case log2
```

## See Also

### Advanced Operations

- [MLCArithmeticOperation.sqrt](mlcompute/mlcarithmeticoperation/sqrt.md)
- [MLCArithmeticOperation.rsqrt](mlcompute/mlcarithmeticoperation/rsqrt.md)
- [MLCArithmeticOperation.pow](mlcompute/mlcarithmeticoperation/pow.md)
- [MLCArithmeticOperation.exp](mlcompute/mlcarithmeticoperation/exp.md)
- [MLCArithmeticOperation.exp2](mlcompute/mlcarithmeticoperation/exp2.md)
- [MLCArithmeticOperation.log](mlcompute/mlcarithmeticoperation/log.md)
