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.
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 == 0 && $y > 0) $nombrecomplexe['argument'] = 1.5707964; // angle de pi/2 = 90°
/* ... */ ?>
<?php /* ... */
$Y = $ry;
$ET = atan($Y / $X);
$DC = atan($Z / Sqrt(1 - $Z * $Z));
/* ... */ ?>
Connexion
Les fonctions
Références
- abs
- acos
- acosh
- asin
- asinh
- atan2
- atan
- atanh
- base_convert
- bindec
- ceil
- cos
- cosh
- decbin
- dechex
- decoct
- deg2rad
- exp
- expm1
- floor
- fmod
- getrandmax
- hexdec
- hypot
- is_finite
- is_infinite
- is_nan
- lcg_value
- log10
- log1p
- log
- max
- min
- mt_getrandmax
- mt_rand
- mt_srand
- octdec
- pi
- pow
- rad2deg
- rand
- round
- sin
- sinh
- sqrt
- srand
- tan
- tanh





