Progress
SQL-92
Guide and Reference


ACOS Function

Returns the arccosine of expression.

SYNTAX

ACOS ( expression ) 

EXAMPLE

This example illustrates two ways to use the acos function. The first SELECT statement returns the arcosine in radians, and the second returns the arcosine in degrees.

select acos (.5) ’Arccosine in radians’ from syscalctable;

ARCCOSINE IN RADIANS
--------------------
1.047197551196598
 
1 record selected
 
 
select acos (.5) * (180/ pi()) ’Arccosine in degrees’ from syscalctable;
 
ARCCOSINE IN DEGREES
-------------------- 
59.999999999999993
1 record selected 

NOTES

COMPATIBILITY

ODBC Compatible


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095