> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metrics-man.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pow

# \$pow

The `$pow` operator raises the first value to the power of the second value.

## Input

* An array containing exactly two numeric values: the base and the exponent

## Output

* The first value raised to the power of the second value

## Examples

### Basic Power

```json theme={null}
{
  "$pow": [
    2,
    3
  ]
}
```

Result: `8`

### Square Root (power of 0.5)

```json theme={null}
{
  "$pow": [
    16,
    0.5
  ]
}
```

Result: `4`

### Negative Base

```json theme={null}
{
  "$pow": [
    -2,
    3
  ]
}
```

Result: `-8`

### Field Value

```json theme={null}
{
  "$pow": [
    {
      "$input": "base_value"
    },
    {
      "$input": "exponent"
    }
  ]
}
```

Result: The base\_value field raised to the power of the exponent field
