How LOG() Works in MariaDB

In MariaDB, LOG() is a built-in function that returns the natural logarithm of its argument to a given base.

It can be called with one or two arguments:

  • When called with one argument, returns the natural logarithm of the argument.
  • When called with two arguments, returns the logarithm of the second argument to the base specified in the first argument.

When called with a single argument, LOG() is the inverse of EXP(), and it’s the same as using LN().

Read more

How LN() Works in MariaDB

In MariaDB, LN() is a built-in function that returns the natural logarithm of its argument. In other words, it returns the base-e logarithm of its argument.

The number e, also known as Euler’s number, is a mathematical constant approximately equal to 2.71828.

LN() is the inverse of EXP(), and it’s the same as using LOG() with the single argument syntax.

Read more