logb - part-cw/lambdanative GitHub Wiki

(logb x b)

logb returns the logarithm of x in base b.

Parameter Description
x The number operated on
b Logarithm base

Example

Example 1: Comparisons of different logarithm functions

> (log10 30)
1.4771212547196624
> (lg 30)
4.906890595608519
> (logb 30 5)
2.1132827525593787