Tag Archives: Math

Math functions

  • abs – It returns absolute value
  • acos – It returns arccosine value
  • acosh – It returns Inverse hyperbolic cosine
  • asin – It returns arc sine
  • asinh – It returns Inverse hyperbolic sine
  • atan2 – It returns Arc tangent of two variables
  • atan – It returns Arc tangent
  • atanh – It  returns Inverse hyperbolic tangent
  • base_convert – It convert a number between arbitrary bases
  • bindec – It converts binary number to decimal number
  • ceil – It round the fractions up
  • cos – It returns cosine value .
  • cosh – It returns Hyperbolic cosine .
  • decbin – It converts a decimal to binary
  • dechex – It converts a decimal to hexadecimal
  • decoct – It converts a decimal to octal
  • deg2rad – It converts the number in degrees to the radian equivalent
  • exp – It calculates the exponent of e
  • expm1 – It calculates the value of Ex-1
  • floor – It round fractions down
  • fmod – It returns the remainder of the division.
  • getrandmax – It shows largest possible random value
  • hexdec – It converts Hexadecimal to decimal
  • hypot – It calculate the length of the hypotenuse
  • is_finite – It checks whether a value is a legal finite number
  • is_infinite – It checks whether a value is a legal infinite number
  • is_nan – It checks whether a value is not a number
  • lcg_value – It returns combined linear congruential generator
  • log10 – It returns Base-10 logarithm value
  • log1p – It returns log(1+x)
  • log – It returns natural logarithm
  • max – It returns maximum value
  • min – It returns lowest value
  • mt_getrandmax – It returns largest possible random value
  • mt_rand – It generates a better random value
  • mt_srand – It seed the better random number generator
  • octdec – It converts octal number to decimal
  • pi – It returns the value of pi
  • pow – It returns Exponential expression
  • rad2deg – It converts the radian number to the equivalent number in degrees
  • rand – It generates a random integer
  • round – It rounds a float
  • sin – it returns sine value
  • sinh – it returns hyperbolic sine
  • sqrt – It returns Square root
  • srand – It seed the random number generator
  • tan – It returns tangent value
  • tanh – It returns hyperbolic tangent