PHP Math function extension

Source: Internet
Author: User
Tags natural logarithm square root
Mathematical functions:

abs-Absolute Value

acos-Inverse cosine

acosh-Inverse hyperbolic cosine

asin-anyway Chord

asinh-Inverse hyperbolic sine

atan2-two parameters of the inverse tangent

atan-anyway cut

atanh-Inverse hyperbolic tangent

Base_convert-converting numbers between arbitrary binaries

bindec-binary conversion to decimal

Ceil-into one method to take the whole

cos-cosine

cosh-Hyperbolic cosine

decbin-Decimal conversion to Binary

dechex-decimal conversion to hexadecimal

decoct-Decimal conversion to octal

deg2rad-to convert an angle to radians

exp-calculating the exponent of E

The expm1-returns exp (number)-1, even if the value of the count is close to 0 to calculate the exact result

floor-and rounding out the whole process

fmod-returns the remainder of the floating-point number for division

getrandmax-Displays the maximum possible value of the random number

hexdec-16 binary conversion to decimal

hypot-calculating the length of the hypotenuse of the triangle at all angles

is_finite-to determine whether a finite value

is_infinite-to determine if it is an infinite value

is_nan-determine if the value is legal

lcg_value-Combination Linear congruence generator

log10-logarithm with base 10

log1p-returns log (1 + number), even if the value near 0 can calculate the exact result

log-Natural logarithm

max-Find the maximum value

min-Find the Minimum value

mt_getrandmax-display the maximum possible value of a random number

mt_rand-generate a better random number

mt_srand-sowing a better random number generator seed

octdec-octal conversion to decimal

pi-Get pi Value

pow-exponential expression

rad2deg-convert radians to corresponding number of angles

Rand-produces a random integer

Round-rounding of floating-point numbers

sin-sine

sinh-hyperbolic sine

sqrt-Square Root

srand-sowing random number generator seeds

tan-Tangent

tanh-Hyperbolic tangent

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.