Math

Sin Block

Trigonometric sine function: y = sin(u)

Open Sin in BlockWerk →

# Sin Block

Overview

The Sin block implements the trigonometric sine function.

Equation

y = sin(u)

Where u is the input in radians.

Parameters

None

Features

Input/Output

| Port | Type | Range | Description | | ---- | ------ | ------- | ---------------------- | | in | number | ℝ | Input angle in radians | | out | number | [-1, 1] | Sine output |

Examples

Example 1: Sine Wave Generation

Connect a Ramp with slope 2π/10 to Sin block for a 10-second sine wave.

Example 2: Signal Processing

Use Sin in feedback control systems for phase calculations.

Notes

Related Blocks