Vous êtes ici Fonction PHP > Description de la fonction atan()

 

Recherche sur les Noms des fonctions php/mysql

 
 

atan()

Définition

Arc tangente - (PHP 4, PHP 5)

Description

float atan ( float $arg )

Retourne l'arc tangent de arg (arg en radians). atan() est la fonction inverse de tan(), ce qui signifie que a==tan(atan(a)) pour toute valeur qui soit dans l'intervalle de validité de atan().

Liste de paramètres

arg

L'argument à traiter

Valeurs de retour

L'arc tangent de arg , en radians.

Voir aussi



 
 

Bouts de code utilisant la fonction atan()



<?php /* ... */     $nombrecomplexe['module'] = sqrt($x*$x $y*$y); // sqrt = square root = racine carrée     if ($x != 0$nombrecomplexe['argument'] = atan($y/$x); // arctan = tan^(-1)     if ($x == && $y 0$nombrecomplexe['argument'] = 1.5707964// angle de pi/2 = 90° /* ... */ ?>

<?php /* ... */ $Y $ry; $ET atan($Y $X); $DC atan($Z Sqrt($Z $Z)); /* ... */ ?>