# POW

將第一個輸入提高至第二個輸入的冪次。

這是 [`POWER`](https://help.qlik.com/zh-TW/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/mathematical/power.htm) 函數的別名。

## 語法

```
POW(X, P)
```

## 引數

#### X

類型：`numeric`

數值。

#### P

類型：`numeric`

數值。

## 傳回

類型：`double`

`X` 的 `P` 次方。

***

## 範例

| X | P | 輸出 |
| --- | --- | --- |
| 1 | 1 | 1.0 |
| 2 | 2 | 4.0 |
| -1 | 2 | 1.0 |
| -2 | -2 | 0.25 |
| 0.5 | 0.5 | 0.7071067811865476 |
| 0.5 | 0 | 1.0 |
| 0 | 0 | 1.0 |