Fonction atan()

❮ Référence PHP Math

Exemple

Retourne l'arc tangente de plusieurs nombres avec la fonction atan() :

<?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));
?>
Essayez-le vous-même »

Définition et Utilisation

La fonction atan() retourne l'arc tangente de arg sous forme de valeur numérique comprise entre -Pi/2 et Pi/2 radians.


Syntaxe

atan( arg );

Valeurs des Paramètres

Paramètre Description
arg Requis. Spécifie un argument à traiter

Détails Techniques

Valeur de Retour : L'arc tangente de arg en radians
Type de Retour : Float
Version PHP : 4+

❮ Référence PHP Math