Php : Fonctions mathématiques

Voici les fonctions mathématiques en php. (géométrie, conversion...)

Géométrie

float acos(float x)
Arc cosinus de x.
 
float asin(float x)
Arc sinus de x.
 
float atan(float x)
Arc tangeante de x.
 
float cos(float x)
Cosinus de x.
 
float sin(float x)
Sinus de x.
 
float tan(float x)
Tangente de x.

Conversion

int bindec(string binaire)
Conversion Binaire/Décimal.
 
string decbin(int entier)
Conversion Entier/Binaire.
 
string dechex(int number)
Conversion Entier/Hexa.
 
string decoct(int number)
Conversion Entier/Octal.
 
int hexdec(string hex)
Conversion Hexa/Décimal.
 
int octdec(string octal)
Conversion Octal/Décimal.

Divers

mixed abs(mixed x)
Valeur absolue de x.
 
int ceil(float x)
Le plus petit entier >=x.
 
float sqrt(float x)
Racine carré de x.
 
float exp(float x)
Exponentielle de x.
 
float log(float x)
Logarithme népérien de x.
 
double pi()
Valeur de PI.
 
float pow(float x, float y)
x à la puissance y.
 
double round(double x)
L'entier le plus proche de x.
Twitter Facebook Google Plus Email