acos

float acos(float float) 

Returns the calculated arccosine of the given argument.

Returns:

Arccosine of a value

Description:

acos() calculates the arccosine of a value.

Version:

PHP 3, PHP 4

See also:

asin() 
atan() 
atan2() 
cos() 
sin() 
tan() 

Example:

Calculate the arccosine of a value
$cos = 0.5; 
echo "The arccosine of $cos is ", acos($cos); 

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.