blockAtan2
Output atan(u1/u2) of the inputs u1 and u2
Extends from Interfaces.SI2SO (2 Single Input / 1 Single Output continuous control block).
Information
This blocks computes the output y as the tangent-inverse of the input u1 divided by input u2:
y = atan2( u1, u2 );
u1 and u2 shall not be zero at the same time instant. Atan2 uses the sign of u1 and u2 in order to construct the solution in the range -180 deg ≤ y ≤ 180 deg, whereas block Atan gives a solution in the range -90 deg ≤ y ≤ 90 deg.
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| RealInput | u1 (from SI2SO) | Connector of Real input signal 1 | |
| RealInput | u2 (from SI2SO) | Connector of Real input signal 2 | |
| RealOutput | y (from SI2SO) | Connector of Real output signal |