Acos Icon
Mathematical.Acos
AcosA component that computes the inverse cosine (arccos) of the input signal.
Description
The Acos block computes the inverse cosine of input u using the built-in acos() function. The output y is defined as: y = acos(u). Note: The input u must be in the range [-1, 1].
Variables
u(t): Input signal (must be in range [-1, 1])y(t): Output signal (arccosine of u, in radians)
Examples
- u = 1 → y = 0
- u = 0 → y = π/2
- u = -1 → y = π
This component extends from BlockComponents.SISO
Usage
PrimitiveComponents.Mathematical.Acos()
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) &= \arccos\left( u\left( t \right) \right) \end{align} \]
Source
"""
Acos
A component that computes the inverse cosine (arccos) of the input signal.
# Description
The Acos block computes the inverse cosine of input `u` using the built-in `acos()` function.
The output `y` is defined as: y = acos(u).
Note: The input `u` must be in the range [-1, 1].
# Variables
- `u(t)`: Input signal (must be in range [-1, 1])
- `y(t)`: Output signal (arccosine of u, in radians)
# Examples
- u = 1 → y = 0
- u = 0 → y = π/2
- u = -1 → y = π
"""
component Acos
extends BlockComponents.SISO
relations
y = acos(u)
metadata {
"Dyad": {
"icons": {"default": "dyad://PrimitiveComponents/Acos.svg"},
"labels": [{"label": "$(instance)", "x": 500, "y": 1100}]
}
}
end
Flattened Source
"""
Acos
A component that computes the inverse cosine (arccos) of the input signal.
# Description
The Acos block computes the inverse cosine of input `u` using the built-in `acos()` function.
The output `y` is defined as: y = acos(u).
Note: The input `u` must be in the range [-1, 1].
# Variables
- `u(t)`: Input signal (must be in range [-1, 1])
- `y(t)`: Output signal (arccosine of u, in radians)
# Examples
- u = 1 → y = 0
- u = 0 → y = π/2
- u = -1 → y = π
"""
component Acos
"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 = acos(u)
metadata {
"Dyad": {
"labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
"icons": {"default": "dyad://PrimitiveComponents/Acos.svg"}
}
}
endTest Cases
No test cases defined.
Related
- Examples
- Experiments
- Analyses