log function

The log function returns the logarithmic value with the specified base for the given expression.

Syntax:

double log(n,b)

Semantics:

Example 1 - log function

SELECT log(n,b) FROM PHtable
Value of n Value of b Output
2 2 1.0
81 3 4.0
255 5 3.442980622208573