---
url: /dyad/dev/stdlib/BlockComponents/components/Math.Exponentiation.md
description: >-
  Dyad Math.Exponentiation docs.  Outputs the input raised to a constant
  exponent.
---

# `Math.Exponentiation` {#Math.Exponentiation}

Outputs the input raised to a constant exponent.

Computes the output `y` as the input `u` raised to the power of the parameter `exponent`:

$$y = u^{\text{exponent}}$$

This component extends from [`BlockComponents.Interfaces.SISO`](../types/Interfaces.SISO.md)

## Usage {#Usage}

`BlockComponents.Math.Exponentiation(exponent=2.0)`

## Parameters: {#Parameters:}

|       Name |       Description | Units | Default value |
| ----------:| -----------------:| -----:| -------------:|
| `exponent` | Exponent of power |     – |           2.0 |

## Connectors {#Connectors}

* `u` - This connector represents a real signal as an input to a component ([`RealInput`](/stdlib/Dyad/connectors/RealInput#RealInput))

* `y` - This connector represents a real signal as an output from a component ([`RealOutput`](/stdlib/Dyad/connectors/RealOutput#RealOutput))

## Behavior {#Behavior}

$$ \begin{align}
y\left( t \right) &= \left( u\left( t \right) \right)^{\mathtt{exponent}}
\end{align}
$$

## Source {#Source}

````dyad
"""
Outputs the input raised to a constant exponent.

Computes the output `y` as the input `u` raised to the power of the
parameter `exponent`:

```math
y = u^{\\text{exponent}}
```
"""
component Exponentiation
  extends BlockComponents.Interfaces.SISO
  "Exponent of power"
  parameter exponent::Real = 2.0
relations
  "Computes the input signal raised to the exponent"
  y = u ^ exponent
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/Exponentiation.svg"}
  }
}
end
````

````dyad
"""
Outputs the input raised to a constant exponent.

Computes the output `y` as the input `u` raised to the power of the
parameter `exponent`:

```math
y = u^{\\text{exponent}}
```
"""
component Exponentiation
  "Input signal port"
  u = RealInput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "input", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0},
        "diagram": {"iconName": "input", "x1": -100, "y1": 450, "x2": 0, "y2": 550, "rot": 0}
      }
    }
  }
  "Output signal port"
  y = RealOutput() {
    "Dyad": {
      "placement": {
        "icon": {"iconName": "output", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0},
        "diagram": {"iconName": "output", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
      }
    }
  }
  "Exponent of power"
  parameter exponent::Real = 2.0
relations
  "Computes the input signal raised to the exponent"
  y = u ^ exponent
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/Exponentiation.svg"}
  }
}
end
````

## Test Cases {#Test-Cases}

No test cases defined.

## Related {#Related}

* Examples

* Experiments

* Analyses

* Tests
  * [`Constant`](Math.Exponentiation.md)

  * [`Exponentiation`](Math.Exponentiation.md)

  * [`Exponentiation`](Math.Exponentiation.md)

  * [`Max`](Math.Exponentiation.md)

  * [`Ramp`](Math.Exponentiation.md)
