Math Functions

  1. abs()
  2. acos()
  3. acosh()
  4. asin()
  5. asinh()
  6. atan()
  7. atan2()
  8. atanh()
  9. base_convert()
  10. bindec()
  11. ceil()
  12. cos()
  13. cosh()
  14. decbin()
  15. dechex()
  16. decoct()
  17. deg2rad()
  18. exp()
  19. expm1()
  20. floor()
  21. fmod()
  22. getrandmax()
  23. hexdec()
  24. hypot()
  25. is_finite()
  26. is_infinite()
  27. is_nan()
  28. lcg_value()
  29. log()
  30. log10()
  31. log1p()
  32. max()
  33. min()
  34. mt_getrandmax()
  35. mt_rand()
  36. mt_srand()
  37. octdec()
  38. pi()
  39. pow()
  40. rad2deg()
  41. rand()
  42. round()
  43. sin()
  44. sinh()
  45. sqrt()
  46. srand()
  47. tan()
  48. tanh()

Math Constants

M_E

Returns e (approx. 2.718)

M_EULER

Returns Euler’s constant (approx. 0.577)

M_LNPI

Returns the natural logarithm of PI (approx. 1.144)

M_LN2

Returns the natural logarithm of 2 (approx. 0.693)

M_LN10

Returns the natural logarithm of 10 (approx. 2.302)

M_LOG2E

Returns the base-2 logarithm of E (approx. 1.442)

M_LOG10E

Returns the base-10 logarithm of E (approx. 0.434)

M_PI

Returns PI (approx. 3.14159)

M_PI_2

Returns PI/2 (approx. 1.570)

M_PI_4

Returns PI/4 (approx. 0.785)

M_1_PI

Returns 1/PI (approx. 0.318)

M_2_PI

Returns 2/PI (approx. 0.636)

M_SQRTPI

Returns the square root of PI (approx. 1.772)

M_2_SQRTPI

Returns 2/square root of PI (approx. 1.128)

M_SQRT1_2

Returns the square root of 1/2 (approx. 0.707)

M_SQRT2

Returns the square root of 1/2 (approx. 0.707)

M_SQRT2

Returns the square root of 2 (approx. 1.414)

M_SQRT3

Returns the square root of 3 (approx. 1.732)

 

Share This:

Leave a Reply

Your email address will not be published. Required fields are marked *