Log (math)

Takes two arguments a and b, and returns the base-a logarithm of b.

Format:

Log(exp1,exp2)

Arguments:

exp1

Expression giving the base of the logarithm. Must be positive.

exp2

Expression giving the value to take the logarithm of. Must be positive.

Return type:

float

Error conditions:

Returns bottom if either of exp1 or exp2 evaluates to bottom, or if either of exp1 or exp2 is not positive.

Examples:

value=log(2,64)
  Sets value to the base 2 log of 64, which is 6.0.

Last updated