sqrt

inline fun <T : Number> Array<T>.sqrt(): DoubleArray

Computes the positive square root of the value Array.

Example:

arrayOf(1.0, 4.0, 9.0).sqrt() // [1.0, 2.0, 3.0]

Since

1.1.0

See also

sqrt

inline fun <T : Number> Iterable<T>.sqrt(): Iterable<Double>

Computes the positive square root of the value Iterable.

Example:

listOf(1.0, 4.0, 9.0).sqrt() // [1.0, 2.0, 3.0]

Since

1.1.0

See also

sqrt