# pow

> Returns x raised to the power y.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics](/engine/6000.7/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

## pow(float, float)

Returns x raised to the power y.

```csharp
public static float pow(float x, float y)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The exponent base.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The exponent power.

### Returns

| Type                                                          | Description                             |
| ------------------------------------------------------------- | --------------------------------------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The result of raising x to the power y. |

## pow(float2, float2)

Returns the componentwise result of raising x to the power y.

```csharp
public static float2 pow(float2 x, float2 y)
```

### Parameters

**** (\[float2]\(/engine/6000.7/script-reference/unity/mathematics/float2)): The exponent base.**** (\[float2]\(/engine/6000.7/script-reference/unity/mathematics/float2)): The exponent power.

### Returns

| Type                                                                  | Description                                           |
| --------------------------------------------------------------------- | ----------------------------------------------------- |
| [float2](/engine/6000.7/script-reference/unity/mathematics/float2.md) | The componentwise result of raising x to the power y. |

## pow(float3, float3)

Returns the componentwise result of raising x to the power y.

```csharp
public static float3 pow(float3 x, float3 y)
```

### Parameters

**** (\[float3]\(/engine/6000.7/script-reference/unity/mathematics/float3)): The exponent base.**** (\[float3]\(/engine/6000.7/script-reference/unity/mathematics/float3)): The exponent power.

### Returns

| Type                                                                  | Description                                           |
| --------------------------------------------------------------------- | ----------------------------------------------------- |
| [float3](/engine/6000.7/script-reference/unity/mathematics/float3.md) | The componentwise result of raising x to the power y. |

## pow(float4, float4)

Returns the componentwise result of raising x to the power y.

```csharp
public static float4 pow(float4 x, float4 y)
```

### Parameters

**** (\[float4]\(/engine/6000.7/script-reference/unity/mathematics/float4)): The exponent base.**** (\[float4]\(/engine/6000.7/script-reference/unity/mathematics/float4)): The exponent power.

### Returns

| Type                                                                  | Description                                           |
| --------------------------------------------------------------------- | ----------------------------------------------------- |
| [float4](/engine/6000.7/script-reference/unity/mathematics/float4.md) | The componentwise result of raising x to the power y. |

## pow(double, double)

Returns x raised to the power y.

```csharp
public static double pow(double x, double y)
```

### Parameters

**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): The exponent base.**** (\[double]\(https\://learn.microsoft.com/dotnet/api/system.double)): The exponent power.

### Returns

| Type                                                           | Description                             |
| -------------------------------------------------------------- | --------------------------------------- |
| [double](https://learn.microsoft.com/dotnet/api/system.double) | The result of raising x to the power y. |

## pow(double2, double2)

Returns the componentwise result of raising x to the power y.

```csharp
public static double2 pow(double2 x, double2 y)
```

### Parameters

**** (\[double2]\(/engine/6000.7/script-reference/unity/mathematics/double2)): The exponent base.**** (\[double2]\(/engine/6000.7/script-reference/unity/mathematics/double2)): The exponent power.

### Returns

| Type                                                                    | Description                                           |
| ----------------------------------------------------------------------- | ----------------------------------------------------- |
| [double2](/engine/6000.7/script-reference/unity/mathematics/double2.md) | The componentwise result of raising x to the power y. |

## pow(double3, double3)

Returns the componentwise result of raising x to the power y.

```csharp
public static double3 pow(double3 x, double3 y)
```

### Parameters

**** (\[double3]\(/engine/6000.7/script-reference/unity/mathematics/double3)): The exponent base.**** (\[double3]\(/engine/6000.7/script-reference/unity/mathematics/double3)): The exponent power.

### Returns

| Type                                                                    | Description                                           |
| ----------------------------------------------------------------------- | ----------------------------------------------------- |
| [double3](/engine/6000.7/script-reference/unity/mathematics/double3.md) | The componentwise result of raising x to the power y. |

## pow(double4, double4)

Returns the componentwise result of raising x to the power y.

```csharp
public static double4 pow(double4 x, double4 y)
```

### Parameters

**** (\[double4]\(/engine/6000.7/script-reference/unity/mathematics/double4)): The exponent base.**** (\[double4]\(/engine/6000.7/script-reference/unity/mathematics/double4)): The exponent power.

### Returns

| Type                                                                    | Description                                           |
| ----------------------------------------------------------------------- | ----------------------------------------------------- |
| [double4](/engine/6000.7/script-reference/unity/mathematics/double4.md) | The componentwise result of raising x to the power y. |
