Tan Icon
Mathematical.Tan
TanA component that computes the tangent of the input signal.
Description
The Tan block computes the tangent of input u using the built-in tan() function.
Variables
u(t): Input signal (angle in radians)y(t): Output signal (tangent of u)
Examples
- u = 0 → y = 0.0
- u = π/4 → y = 1.0
- u = π/2 → y → ∞ (undefined)
This component extends from BlockComponents.SISO
Usage
PrimitiveComponents.Mathematical.Tan()
Connectors
u- 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
\[ \begin{align} y\left( t \right) &= \tan\left( u\left( t \right) \right) \end{align} \]
Source
"""
Tan
A component that computes the tangent of the input signal.
# Description
The Tan block computes the tangent of input `u` using the built-in `tan()` function.
# Variables
- `u(t)`: Input signal (angle in radians)
- `y(t)`: Output signal (tangent of u)
# Examples
- u = 0 → y = 0.0
- u = π/4 → y = 1.0
- u = π/2 → y → ∞ (undefined)
"""
component Tan
extends BlockComponents.SISO
relations
y = tan(u)
metadata {
"Dyad": {
"icons": {"default": "dyad://PrimitiveComponents/Tan.svg"},
"labels": [{"label": "$(instance)", "x": 500, "y": 1100}]
}
}
end
Flattened Source
"""
Tan
A component that computes the tangent of the input signal.
# Description
The Tan block computes the tangent of input `u` using the built-in `tan()` function.
# Variables
- `u(t)`: Input signal (angle in radians)
- `y(t)`: Output signal (tangent of u)
# Examples
- u = 0 → y = 0.0
- u = π/4 → y = 1.0
- u = π/2 → y → ∞ (undefined)
"""
component Tan
"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}
}
}
}
relations
y = tan(u)
metadata {
"Dyad": {
"labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
"icons": {"default": "dyad://PrimitiveComponents/Tan.svg"}
}
}
endTest Cases
No test cases defined.
Related
- Examples
- Experiments
- Analyses