image\Dql_0023.gifatan2 (arctangent 2)

Type

Trigonometric Function

Purpose

The atan2 function calculates the arctangent of Value 1 divided by Value 2

The result is an angle expressed in radians between -p and p.

Syntax

atan2( NUMERIC VALUE 1, NUMERIC VALUE 2)

Returns

A numeric value.

Usage

The numeric value in a Trigonometric function can be a constant value (as shown below), a variable, a field value or an expression.

Examples

atan2(3,127)

Returns:0.02361766

 

atan2(1, 1)

Returns:0.7854