Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

ATAN2

Example

Calculate the arc tangent of two values:

SELECT ATAN2(0.50, 1); 

Definition and Usage

The ATAN2() function yields the arctangent of two numerical inputs.

Syntax

ATAN2(a, b)

Parameter Values

Parameter

Description

a, b

Mandatory: Two numerical values needed for computing the arctangent.

Technical Details

Works in: From MySQL 4.0

More Examples

Example

Compute and provide the arctangent of two given values.

SELECT ATAN2(0.8, 2);