[Previous] [Contents] [Next]


Powers and Logs


The PHP mathematical library includes the exponential and logarithmic functions listed in Table 2-5.

Table 2-5. Exponential and logarithmic functions
Function Description
float exp(float arg) e to the power of arg
float pow(float base, number exp) Exponential expression base to the power of exp
float sqrt(float arg) Square root of arg
float log(float arg) Natural logarithm of arg
float log10(float arg) Base-10 logarithm of arg

[Previous] [Contents] [Next]