ARCOS Function

Returns the arccosine in radians.

Category: Trigonometric
Alias: ACOS
Returned data type: DOUBLE

Syntax

ARCOS(expression)

Arguments

expression

specifies any valid SQL expression that evaluates to a numeric value.

Range -1 to 1
Data type DOUBLE
See <sql-expression>
FedSQL Expressions

Details

The ARCOS function returns the arccosine (inverse cosine) of the argument. The value that is returned is specified in radians.

Example

The following statements illustrate the ARCOS function:
Statements
Results
select arcos(1);
0
select arcos(0);
1.570796
select arcos(-0.5);
2.094395
Last updated: February 23, 2017