Présentation Math PHP
Les fonctions mathématiques peut manipuler des valeurs au sein de la gamme de nombres entiers et les types de flotteurs.
Installation
Les fonctions mathématiques font partie du coeur de PHP. Il n'y a pas d'installation nécessaire pour utiliser ces fonctions.
Fonctions mathématiques PHP
PHP : indique la première version de PHP qui prend en charge la fonction.
Fonction | Description | PHP |
---|---|---|
abs () | Renvoie la valeur absolue d'un nombre | 3 |
acos () | Renvoie l'arccosinus d'un certain nombre | 3 |
acosh () | Retourne le cosinus hyperbolique inverse d'un certain nombre | 4 |
asin () | Renvoie l'arcsinus d'un nombre | 3 |
asinh () | Renvoie le sinus hyperbolique inverse d'un certain nombre | 4 |
atan () | Renvoie l'arctangente d'un nombre comme une valeur numérique entre-PI / 2 et PI / 2 radians | 3 |
atan2 () | Retourne l'angle thêta d'un point (x, y) comme une valeur numérique entre-PI et PI radians | 3 |
atanh () | Renvoie la tangente hyperbolique inverse d'un certain nombre | 4 |
base_convert () | Convertit un nombre d'une base à une autre | 3 |
bindec () | Convertit un nombre binaire en un nombre décimal | 3 |
ceil () | Renvoie la valeur d'un certain nombre arrondi à l'entier le plus proche | 3 |
cos () | Retourne le cosinus d'un nombre | 3 |
cosh () | Renvoie le cosinus hyperbolique d'un nombre | 4 |
decbin () | Convertit un nombre décimal en un nombre binaire | 3 |
dechex () | Convertit un nombre décimal en un nombre hexadécimal | 3 |
decoct () | Convertit un nombre décimal en un nombre octal | 3 |
deg2rad () | Convertit un degré à un certain nombre radian | 3 |
exp () | Retourne la valeur de E x | 3 |
expm1 () | Retourne la valeur de E x - 1 | 4 |
plancher () | Retourne la valeur d'un nombre arrondi vers le bas pour l'entier le plus proche | 3 |
fmod () | Retourne le reste (modulo) de la division des arguments | 4 |
Retourne le nombre maximal aléatoire qui peut être retourné par un appel à la fonction rand () | 3 | |
hexdec () | Convertit un nombre hexadécimal en un nombre décimal | 3 |
hypot () | Renvoie la longueur de l'hypoténuse d'un triangle à angle droit | 4 |
is_finite () | Renvoie true si une valeur est un nombre fini | 4 |
is_infinite () | Renvoie true si une valeur est un nombre infini | 4 |
is_nan () | Renvoie true si une valeur n'est pas un nombre | 4 |
lcg_value () | Renvoie un nombre pseudo-aléatoire dans l'intervalle de (0,1) | 4 |
log () | Renvoie le logarithme naturel (base e) d'un certain nombre | 3 |
log10 () | Renvoie le logarithme en base 10 d'un certain nombre | 3 |
log1p () | Retours journal (1 + numéro) | 4 |
max () | Retourne le numéro avec la valeur la plus élevée de deux nombres spécifiés | 3 |
min () | Retourne le nombre avec la valeur la plus basse de deux nombres spécifiés | 3 |
mt_getrandmax () | Renvoie la valeur la plus grande possible qui peut être retourné par mt_rand () | 3 |
mt_rand () | Renvoie un entier aléatoire en utilisant l'algorithme Mersenne Twister | 3 |
mt_srand () | Graines du Mersenne Twister générateur de nombres aléatoires | 3 |
octdec () | Convertit un nombre octal en un nombre décimal | 3 |
pi () | Retourne la valeur de PI | 3 |
pow () | Retourne la valeur de x à la puissance y | 3 |
rad2deg () | Convertit un nombre en radians à un degré | 3 |
rand () | Renvoie un entier aléatoire | 3 |
ronde () | Arrondit un nombre à l'entier le plus proche | 3 |
sin () | Retourne le sinus d'un nombre | 3 |
sinh () | Renvoie le sinus hyperbolique d'un nombre | 4 |
sqrt () | Renvoie la racine carrée d'un nombre | 3 |
srand () | Graines du générateur de nombres aléatoires | 3 |
tan () | Renvoie la tangente d'un angle | 3 |
tanh () | Renvoie la tangente hyperbolique d'un angle | 4 |
Constantes mathématiques PHP
PHP : indique la première version de PHP qui prend en charge la constante.
Constante | Description | PHP |
---|---|---|
M_e | E retour (env. 2,718) | 4 |
M_EULER | Retourne la constante d'Euler (env. 0,577) | 4 |
M_LNPI | Retourne le logarithme naturel de la PI (env. 1.144) | 4 |
M_LN2 | Retourne le logarithme naturel de 2 (environ 0.693) | 4 |
M_LN10 | Retourne le logarithme naturel de 10 (env. 2.302) | 4 |
M_LOG2E | Renvoie le logarithme en base 2 de E (env. 1.442) | 4 |
M_LOG10E | Renvoie le logarithme en base 10 de E (env. 0,434) | 4 |
M_PI | Retours PI (env. 3,14159) | 3 |
M_PI_2 | Retours PI / 2 (env. 1.570) | 4 |
M_PI_4 | Retours PI / 4 (environ 0,785) | 4 |
M_1_PI | Retours 1/Pi (env. 0.318) | 4 |
M_2_PI | Retours 2/PI (env. 0.636) | 4 |
M_SQRTPI | Renvoie la racine carrée de la PI (env. 1.772) | 4 |
M_2_SQRTPI | Retours 2/square racine de PI (env. 1.128) | 4 |
M_SQRT1_2 | Renvoie la racine carrée de la moitié (environ 0.707) | 4 |
M_SQRT2 | Renvoie la racine carrée de 2 (environ 1.414) | 4 |
M_SQRT3 | Retourne la racine carrée de 3 (environ 1,732) | 4 |
Hey very nice website!! Guy .. Excellent .. Wonderful ..
ReplyDeleteI will bookmark your site and take the feeds additionally?
I'm glad to search out numerous helpful info right here in the put up, we want develop more techniques on this regard, thanks for sharing. . . . . .
hardwood flooring
My weblog ... engineered hardwood flooring
This post will help the internet users for building up new website or even a weblog from
ReplyDeletestart to end.
Feel free to visit my webpage: housekeeping duties list
My developer is trying to convince me to move to .net from PHP.
ReplyDeleteI have always disliked the idea because of the
expenses. But he's tryiong none the less. I've been
using WordPress on numerous websites for about
a year and am anxious about switching to another platform.
I have heard very good things about blogengine.
net. Is there a way I can transfer all my wordpress content into
it? Any help would be really appreciated!
Look at my homepage: hardwood floors
I just like the valuable info you provide for your articles.
ReplyDeleteI will bookmark your weblog and test once more here
regularly. I'm fairly certain I will be informed many new stuff proper right here! Good luck for the following!
Also visit my blog - zetaclear reviews
When I originally commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I
ReplyDeleteget three e-mails with the same comment. Is there any way you can remove me from that service?
Thank you!
My web-site :: glass tile store
I needed to thank you for this excellent read!! I absolutely loved every little bit of it.
ReplyDeleteI've got you saved as a favorite to look at new stuff you post…
used furniture
Here is my page: showing love
I love reading through an article that can
ReplyDeletemake people think. Also, many thanks for permitting
me to comment!
Here is my web site Louis Vuitton Handbags
Good answer back in return of this issue with
ReplyDeletegenuine arguments and explaining everything regarding that.
Stop by my homepage ... Nike Free Run Sko
Yesterday, while I was at work, my cousin stole
ReplyDeletemy apple ipad and tested to see if it can survive a thirty foot drop, just so she can be a youtube sensation.
My apple ipad is now destroyed and she has 83 views. I know this is entirely off topic but I had to share it with someone!
my webpage Discover More Here
Thanks a lot for sharing this with all folks you really recognize
ReplyDeletewhat you are talking about! Bookmarked. Kindly additionally consult with my website =).
We will have a link alternate arrangement among us
Feel free to visit my page; helpful resources
Appreciate this post. Let me try it out.
ReplyDeleteHere is my web-site Visit Website
Aw, this was a very good post. Taking the time and actual effort to make a top
ReplyDeletenotch article… but what can I say… I hesitate a whole lot and don't manage to get nearly anything done.
my blog: Louis Vuitton Purses Outlet
My spouse and I absolutely love your blog and find almost all of
ReplyDeleteyour post's to be precisely what I'm looking for.
can you offer guest writers to write content in
your case? I wouldn't mind composing a post or elaborating on a number of the subjects you write with regards to here. Again, awesome website!
my web page; Air Max Pas Cher
Greetings I am so happy I found your web site, I really found you by accident, while I was searching on Google for something else, Anyways I
ReplyDeleteam here now and would just like to say kudos for a marvelous post and a all round
exciting blog (I also love the theme/design), I don’t have time to read it
all at the moment but I have bookmarked it and also added your RSS
feeds, so when I have time I will be back to read a great deal more, Please do keep up the excellent jo.
Review my weblog ... NFL wholesale Jerseys
When I originally commented I clicked the "Notify me when new comments are added" checkbox
ReplyDeleteand now each time a comment is added I get several emails with
the same comment. Is there any way you can remove people from that service?
Appreciate it!
Take a look at my web blog Cheap Jerseys
I am curious to find out what blog system you
ReplyDeletehappen to be working with? I'm experiencing some minor security issues with my latest website and I'd like to
find something more safeguarded. Do you have any recommendations?
Feel free to surf to my blog post: Sac Louis Vuitton [http://smu-fr.org/louisvuittonpascher.html]
Thank you for the good writeup. It in fact was a amusement
ReplyDeleteaccount it. Look advanced to far added agreeable
from you! By the way, how can we communicate?
My homepage Tory Burch Shoes
Saved as a favorite, I love your blog!
ReplyDeletemy website; Kobe Bryant Shoes 2013 - -
It's a shame you don't have a donate button! I'd most certainly donate to this fantastic blog! I guess for now i'll settle for
ReplyDeletebookmarking and adding your RSS feed to my Google account. I look forward to brand new
updates and will talk about this blog with my Facebook
group. Talk soon!
My web site - Air Max 1
Hmm it looks like your website ate my first comment (it was super long) so
ReplyDeleteI guess I'll just sum it up what I had written and say, I'm thoroughly enjoying your blog.
I as well am an aspiring blog blogger but I'm still new to everything. Do you have any recommendations for inexperienced blog writers? I'd definitely
appreciate it.
my webpage - Boutique Air Max
Hello, after reading this remarkable piece of writing i am also happy to share my know-how here with mates.
ReplyDeleteFeel free to surf to my web site Boutique Air Max
An outstanding share! I've just forwarded this onto a colleague who had been doing a little research on this. And he in fact bought me lunch because I stumbled upon it for him... lol. So let me reword this.... Thank YOU for the meal!! But yeah, thanks for spending the time to talk about this subject here on your website.
ReplyDeleteHere is my website :: Air Max