English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

atan() function in PHP

Thisatan()The function returns the arctangent of a number. It returns a floating-point number that is between-Pi / 2and Pi / 2the numerical value between radians.

Syntax

atan(val)

parameter

  • val-the value of the tangent to be obtained.

returns

Thisatan()The function returns the arctangent of a number.

Example

<?php
   echo(atan(20)  .  "<br>");
   echo(atan(2)  .  "<br>");
   echo(atan(0.60)  .  "<br>");
   echo(atan(-0.60)  .  "<br>");
?>

Output Result

1.520837931073<br>1.1071487177941<br>0.54041950027058<br>-0.54041950027058<br>