Abs
Absolute value.
- signal
- Gradara equations
- 2 ports
absLibraryMathDescription
Outputs the absolute value of its input.
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)
Also in this example:GainSine waveClockSignSqrtSinCosUnary minusPower
Ports
Inputs 1
-
u
Input signal.
Outputs 1
-
y
Output signal, |u|, never negative.
Equations
Modelica
y = |u|
Implementation
The block’s Modelica model
y = abs(u);
See also
Select a block in Gradara and press F1 to open its page offline.