atan

float atan(float x) 

Returns the calculated arctangent for the given argument.

Returns:

Arctangent as a float

Description:

atan() calculates the arctangent for a single value.

Version:

PHP 3, PHP 4

See also:

acos() 
asin() 
atan2() 
cos() 
sin() 
tan() 

Example:

Calculate the arctangent for a value
$tan = 10.0; 
echo "The arctangent of $tan is ", atan($tan); 

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.