Recherche sur les Noms des fonctions php/mysql
atan2()
Définition
Arc tangent de deux variables - (PHP 4, PHP 5)Description
float atan2
( float $y
, float $x
)
Retourne l'arc tangent de deux variables x et y . La formule est : " arc tangent (y / x ) ", et les signes des arguments sont utilisés pour déterminer le quadrant du résultat.
Cette fonction retourne un résultat en radians, entre -PI et PI (inclus).
Liste de paramètres
- y
-
le dividende
- x
-
le diviseur
Valeurs de retour
L'arc tangent de deux variables y /x , en radians.
Bout de code utilisant la fonction atan2()
<?php /* ... */
));
$d = 2 * atan2(sqrt($a), sqrt(1 - $a));
return ($earth_radius * $d);
/* ... */ ?>
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





