acos

Description

Returns the angle (in radians) with a specified cosine.

Syntax

acos(cosine)

Parameters

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

Returns the angle where the cosine is 0.52:

select acos(0.52)
-------------------- 
           1.023945

Usage

acos, a mathematical function, returns the angle (in radians) where the cosine is the specified value.

Standards

ANSI SQL – Compliance level: Transact-SQL extension.

Permissions

Any user can execute acos.

See also

“Mathematical functions” for general information about mathematical functions.

Functions cos, degrees, radians