Name

atan2 — return the two-argument arc tangent, in radians

Synopsis

atan2( in x double precision,
  in y double precision);
 

Description

atan2 returns the arc tangent of the two-dimensional Cartesian point given by x and y. Unlike atan, it uses the signs of both arguments to choose a result in any quadrant. The result is an angle in radians. The arguments are converted to IEEE 64-bit floats and the result is of that type.

Parameters

x

X coordinate, as double precision.

y

Y coordinate, as double precision.

Return Types

atan2 returns a double precision angle in radians.

Examples

Example 24.521. Simple example

SQL> select atan2(1, 1);
unnamed
DOUBLE PRECISION NOT NULL
_______________________________________________________________________________

       0.7853981633974483

1 Rows. -- 0 msec.
      

See Also

atan, sin, cos, pi


© 1992 - OpenLink Software. All rights reserved.

Making Technology Work for You®