functionatan2

Four quadrant inverse tangent

Extends from Modelica.Math.Icons.AxisCenter (Basic icon for mathematical function with y-axis in the center).

Information

This function returns y = atan2(u1, u2), where y is an angle, such that tan(y) = u1/u2 and y is in the range -π rad < y ≤ π rad. u2 may be zero, provided u1 is not zero. Usually u1, u2 is provided in such a form that u1 = sin(y) and u2 = cos(y).

Inputs

TypeNameDefaultDescription
Realu1
Realu2

Outputs

TypeNameDefaultDescription
Q.Angley