log

infix inline fun <T : Number> T.log(array: Array<T>): DoubleArray

Computes the logarithm of the value x to the given Array bases.

Example:

1000 log arrayOf(1000, 100, 10, 1) // [1.0, 2.0 , 3.0]

Since

1.1.0

See also

log

infix inline fun <T : Number> Array<T>.log(number: T): DoubleArray

Computes the logarithm of the Array values to the given base.

Example:

arrayOf(1000, 100, 10) log 10 // [3.0, 2.0 , 1.0]

Since

1.1.0

See also

log

infix inline fun <T : Number> T.log(iterable: Iterable<T>): Iterable<Double>

Computes the logarithm of the value x to the given Iterable bases.

Example:

1000 log listOf(1000, 100, 10, 1) // [1.0, 2.0 , 3.0]

Since

1.1.0

See also

log

infix inline fun <T : Number> Iterable<T>.log(number: T): Iterable<Double>

Computes the logarithm of the Iterable values to the given base.

Example:

listOf(1000, 100, 10) log 10 // [3.0, 2.0 , 1.0]

Since

1.1.0

See also

log

infix inline fun <T : Number> T.log(base: T): Double

Computes the logarithm of the value x to the given base.

Example:

100 log 10 // 2

Since

1.1.0

See also

log