X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP atan() Function

PHP Math Reference PHP Math Reference

Example

Return the arc tangent of different numbers with the atan() function:

<?php
echo(atan(0.50) . "<br>");
echo(atan(-0.50) . "<br>");
echo(atan(5) . "<br>");
echo(atan(-5) . "<br>");
echo(atan(100) . "<br>");
echo(atan(-100));
?>

Run example »

Definition and Usage

The atan() function returns the arc tangent of arg as a numeric value between -Pi/2 and Pi/2 radians.


Syntax

atan(arg);

Parameter Description
arg Required. Specifies an argument to process

Technical Details

Return Value: The arc tangent of arg in radians
Return Type: Float
PHP Version: 4+


PHP Math Reference PHP Math Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook