Atan2

Output atan(u1/u2) of the inputs u1 and u2

    Atan2

Library

Modelica/Blocks/Math

Description

This blocks computes the output y as thetangent-inverse of the input u1 divided byinput 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 constructthe solution in the range -180 deg ≤ y ≤ 180 deg, whereasblock Atan gives a solution in the range-90 deg ≤ y ≤ 90 deg.

atan2.png

Ports

NameTypeDescriptionIO TypeNumber

u1

implicit

Connector of Real input signal 1

input

1

u2

implicit

Connector of Real input signal 2

input

2

y

implicit

Connector of Real output signal

output

1

See Also