This information is part of the Modelica Standard Library maintained by the Modelica Association.

Math

Library of mathematical functions as input/output blocks

Package Contents

UnitConversions
Conversion blocks to convert between SI and non-SI unit signals
Abs
Output the absolute value of the input
Acos
Output the arc cosine of the input
Add
Output the sum of the two inputs
Add3
Output the sum of the three inputs
Asin
Output the arc sine of the input
Atan
Output the arc tangent of the input
Atan2
Output atan(u1/u2) of the inputs u1 and u2
BooleanChange
Indicates boolean signal changing
BooleanToInteger
Convert Boolean to Integer signal
BooleanToReal
Convert Boolean to Real signal
Cos
Output the cosine of the input
Cosh
Output the hyperbolic cosine of the input
Division
Output first input divided by second input
Edge
Indicates rising edge of boolean signal
Exp
Output the exponential (base e) of the input
Feedback
Output difference between commanded and feedback input
Gain
Output the product of a gain value with the input signal
IntegerChange
Indicates integer signal changing
IntegerToBoolean
Convert Integer to Boolean signal
IntegerToReal
Convert integer to real signals
InverseBlockConstraints
Construct inverse model by requiring that two inputs and two outputs are identical (replaces the previously, unbalanced, TwoInputs and TwoOutputs blocks)
Log
Output the natural (base e) logarithm of the input (input > 0 required)
Log10
Output the base 10 logarithm of the input (input > 0 required)
MatrixGain
Output the product of a gain matrix with the input signal vector
Max
Pass through the largest signal
Min
Pass through the smallest signal
PolarToRectangular
Convert polar coordinates to rectangular coordinates
Product
Output product of the two inputs
RealToBoolean
Convert Real to Boolean signal
RealToInteger
Convert Real to Integer signal
RectangularToPolar
Convert rectangular coordinates to polar coordinates
Sign
Output the sign of the input
Sin
Output the sine of the input
Sinh
Output the hyperbolic sine of the input
Sqrt
Output the square root of the input (input >= 0 required)
Sum
Output the sum of the elements of the input vector
Tan
Output the tangent of the input
Tanh
Output the hyperbolic tangent of the input
Information