1. Home
  2. Computing & Technology
  3. PHP / MySQL

Atan () PHP Function

By , About.com Guide

Definition: The Atan () Function finds the arctangent of a number. In Atan (X), the value of X can be any positive or negative number, and the result will be between PI/2 and -PI/2. The function will returns the angle, expressed in radians, whose tangent is X.
Also Known As: Arctangent, Arc tangent
Examples:
<?php
echo(atan(-0.5) . "<br />");
echo(atan(-1) . "<br />");
echo(atan(0) . "<br />");
echo(atan(1) . "<br />");
echo(atan(2))
?>

This will give you the results:
-0.46364760900081
-0.78539816339745
0
0.78539816339745
1.1071487177941

Explore PHP / MySQL
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL
  4. PHP Functions
  5. Atan PHP Function - Arctangent PHP Function - Arc Tangent PHP Function

©2009 About.com, a part of The New York Times Company.

All rights reserved.