math.log

From Garry's Mod
Jump to: navigation, search
 math.log( )

Contents

Description

With one argument, return the natural logarithm of x (to base e).

With two arguments, return the logarithm of x to the given base, calculated as log(x)/log(base).

Arguments

number x

The value to get the base from exponent from.

Arguments

number base=e

The logarithmic base.

Returns

number

Logarithm of x to the given base
Personal tools
Navigation