Exponentials and Logarithms

exp(x)
The exponential of e to the power of x
Parameters:

x (float) – A number parameter.

Return type:

float

ln(x)
The natural logarithm of x
Parameters:

x (float) – A number parameter.

Return type:

float

log(x[, b])
The logarithm of x base 10 by default.
Parameters:
  • x (float) – A number parameter representing exponential value given the base b and the result as the exponent.

  • b (float) – A number parameter representing the base.

Return type:

float

log10(x)
The logarithm of x at base 10.
Parameters:

x (float) – A number parameter representing the exponential value.

Return type:

float

log2(x)
The logarithm of x at base 2.
Parameters:

x (float) – A number parameter representing the exponential value.

Return type:

float