Power

Raise a signal to a real exponent.

  • signal
  • Gradara equations
  • 2 ports
  • 1 parameter
BlockPowerKindpowerLibraryMath

Description

Raises its input to a constant real exponent.

Example

Math functions Gain, absolute value, square root, sign, negation, and power of a sine; sine and cosine of time.

u = 2 sin(πt/2)Gain 0.5|u|√|u|sign(u)−uu²Timesin(t)cos(t)
In Gradara, select a Power block and press F1, then choose Open example. It opens as a new model in My models, ready to run.

Also in this example:GainSine waveClockAbsSignSqrtSinCosUnary minus

Ports

Inputs 1

  • u

    Base.

Outputs 1

  • y

    Output signal, u raised to Exponent.

Parameters

  • Exponentn2

    The exponent. Any real number; 2 squares the input, 0.5 takes the square root.

Equations

Modelica
y = u^n

Implementation

The block’s Modelica model
y = u^n;

Assumptions and limitations

  • The result is undefined for a negative u with a non-integer n, and for u = 0 with a negative n; the simulation then fails. Unlike Sqrt, the input is not clipped.

See also

Select a block in Gradara and press F1 to open its page offline.