Sinusoidal function
![]() |
![]() |
| Vector | C | ST | |
| in the palette | on the schematic |
The block is vectorized. The block returns the output value calculated by the following algorithm:

where a, ω, f – amplitude, circular frequency (rad/s) and phase (rad), x(t), y(t) – input and output signals.

where a, ω, f – amplitude, circular frequency (rad/s) and phase (rad), x(t), y(t) – input and output signals.
Additionally, depending on the block settings, it can return a cosine value

or tangent value


or tangent value

Inputs
- input - the port for the function argument input.
Outputs
- output - the port of the function value.
Properties
- Amplitude, in the formula a·sin[w·x(t) + f] – the coefficient a.
- Frequency – coefficient ω.
- Phase – coefficient f.
Parameters
none
Note:
- By default, this block implements sinusoidal transformation of the input signal (scalar or vector) with coefficients a=1, ω=1, f=0.
- Named properties can be set as local model variables (or submodels) in a programming language script, as global project signals using the Tools → Signals main menu item, or as external project signals using an attachable signal database.

