# MathF.Pow(Single, Single) 方法

## 定義

``````public:
static float Pow(float x, float y);``````
``public static float Pow (float x, float y);``
``static member Pow : single * single -> single``
``Public Shared Function Pow (x As Single, y As Single) As Single``

x
Single

y
Single

## 備註

`x``y` = `NaN` `NaN`
`x` = 除了 以外的 `NaN` 任何值; `y` = 0。 1
`x` = `NegativeInfinity`; `y`< 0. 0
`x` = `NegativeInfinity`; `y` 是正奇數整數。 `NegativeInfinity`
`x` = `NegativeInfinity`; `y` 為正數，但不是奇數整數。 `PositiveInfinity`
`x`< 0 但不是 `NegativeInfinity` ; `y` 不是整數、 `NegativeInfinity``PositiveInfinity` `NaN`
`x` = -1; `y` = `NegativeInfinity``PositiveInfinity` `NaN`
-1 1 <`x`< ; `y` = `NegativeInfinity` `PositiveInfinity`
-1 1 <`x`< ; `y` = `PositiveInfinity` 0
`x`<-1 或 `x` 1; `y` = `NegativeInfinity` 。 > 0
`x`<-1 或 `x` 1; `y` = `PositiveInfinity` 。 > `PositiveInfinity`
`x` = 0; `y`< 0. `PositiveInfinity`
`x` = 0; `y`> 0. 0
`x` = 1; `y` 是 除了 以外的 `NaN` 任何值。 1
`x` = `PositiveInfinity`; `y`< 0. 0
`x` = `PositiveInfinity`; `y`> 0. `PositiveInfinity`