Atan2

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

    Atan2

Library

Modelica/Blocks/Math

Description

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.

atan2.png

Parameters

Atan2_0

NameLabelDescriptionData TypeValid Values

mo_u1

u1

u1

Structure

mo_u1/fixed

fixed

Cell of scalars

true
false

mo_u1/start

start

Cell of scalars

mo_u2

u2

u2

Structure

mo_u2/fixed

fixed

Cell of scalars

true
false

mo_u2/start

start

Cell of scalars

mo_y

y

y

Structure

mo_y/fixed

fixed

Cell of scalars

true
false

mo_y/start

start

Cell of scalars

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