Atan2

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

Library

Blocks/Math

Description

This blocks computes the output (right port) as inverse tangent of the first input (upper left port) divided by the second input (lower left port):

Atan2_equation1

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:

Atan2_equation2

whereas block Atan gives a solution in the range:

Atan2_equation3

Atan2 can be expressed as follows:

Atan2_equation4

Ports

  • Port 1 at left position: implicit input fixedport numbered 1.
  • Port 2 at left position: implicit input fixedport numbered 2.
  • Port 1 at right position: implicit output fixedport numbered 1.

See Also