atan  avg

Chapter 2: Transact-SQL Functions

atn2

Description

Returns the angle (in radians) with specified sine and cosine.

Syntax

atn2(sine, cosine)

Parameters

sine

is the sine of the angle, expressed as a column name, variable, or constant of type float, real, double precision, or any datatype that can be implicitly converted to one of these types.

cosine

is the cosine of the angle, expressed as a column name, variable, or constant of type float, real, double precision, or any datatype that can be implicitly converted to one of these types.

Examples

Example 1

select atn2(.50, .48)
-------------------- 
             0.805803 

Usage

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute atn2.

See also

“Mathematical functions” for general information about mathematical functions.

Functions atan, degrees, radians, tan





Copyright © 2005. Sybase Inc. All rights reserved. avg

View this book as PDF