LIBRARY
Math.Min
Passes through the smallest of two input signals.
Computes the output y as the minimum of the two inputs u1 and u2:
This component extends from BlockComponents.Interfaces.SI2SO
Usage
BlockComponents.Math.Min()
Connectors
u1- This connector represents a real signal as an input to a component (RealInput)u2- This connector represents a real signal as an input to a component (RealInput)y- This connector represents a real signal as an output from a component (RealOutput)
Behavior
Source
dyad
"""
Passes through the smallest of two input signals.
Computes the output `y` as the minimum of the two inputs `u1` and `u2`:
```math
y = \\min(u_1, u_2)
```
"""
component Min
extends BlockComponents.Interfaces.SI2SO
relations
"Computes the minimum of the two input signals"
y = min(u1, u2)
metadata {
"Dyad": {
"labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
"icons": {"default": "dyad://BlockComponents/Min.svg"}
}
}
endFlattened Source
dyad
"""
Passes through the smallest of two input signals.
Computes the output `y` as the minimum of the two inputs `u1` and `u2`:
```math
y = \\min(u_1, u_2)
```
"""
component Min
"First real-valued input signal"
u1 = RealInput() {
"Dyad": {
"placement": {
"icon": {"iconName": "default", "x1": -100, "y1": 150, "x2": 0, "y2": 250, "rot": 0},
"diagram": {"iconName": "default", "x1": -100, "y1": 150, "x2": 0, "y2": 250, "rot": 0}
},
"tags": []
}
}
"Second real-valued input signal"
u2 = RealInput() {
"Dyad": {
"placement": {
"icon": {"iconName": "default", "x1": -100, "y1": 750, "x2": 0, "y2": 850, "rot": 0},
"diagram": {"iconName": "default", "x1": -100, "y1": 750, "x2": 0, "y2": 850, "rot": 0}
}
}
}
"Real-valued output signal"
y = RealOutput() {
"Dyad": {
"placement": {
"icon": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0},
"diagram": {"iconName": "default", "x1": 1000, "y1": 450, "x2": 1100, "y2": 550, "rot": 0}
}
}
}
relations
"Computes the minimum of the two input signals"
y = min(u1, u2)
metadata {
"Dyad": {
"labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
"icons": {"default": "dyad://BlockComponents/Min.svg"}
}
}
endTest Cases
No test cases defined.