Skip to content
LIBRARY
Math.Acos.md

Math.Acos

Outputs the arc cosine of the input.

Computes the output y as the arc cosine of the input u:

The input must be in the range [-1, 1]. The output is in radians in the range [0, π].

This component extends from BlockComponents.Interfaces.SISO

Usage

BlockComponents.Math.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

Source

dyad
"""
Outputs the arc cosine of the input.

Computes the output `y` as the arc cosine of the input `u`:

```math
y = \arccos(u)
```

The input must be in the range [-1, 1]. The output is in radians in the range
[0, π].
"""
component Acos
  extends BlockComponents.Interfaces.SISO(y(units = "rad"))
relations
  "Computes the arc cosine of the input signal"
  y = acos(u)
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/Acos.svg"}
  }
}
end
Flattened Source
dyad
"""
Outputs the arc cosine of the input.

Computes the output `y` as the arc cosine of the input `u`:

```math
y = \arccos(u)
```

The input must be in the range [-1, 1]. The output is in radians in the range
[0, π].
"""
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
  "Computes the arc cosine of the input signal"
  y = acos(u)
metadata {
  "Dyad": {
    "labels": [{"label": "$(instance)", "x": 500, "y": 1100, "rot": 0}],
    "icons": {"default": "dyad://BlockComponents/Acos.svg"}
  }
}
end


Test Cases

No test cases defined.