ln1p

expect fun ln1p(x: Double): Double(source)

Computes ln(x + 1).

This function can be implemented to produce more precise result for x near zero.

Special cases:

  • ln1p(NaN) is NaN

  • ln1p(x) is NaN where x < -1.0

  • ln1p(-1.0) is -Inf

  • ln1p(+Inf) is +Inf

Since Kotlin

1.2

See also

function

function


expect fun ln1p(x: Float): Float(source)

Computes ln(a + 1).

This function can be implemented to produce more precise result for x near zero.

Special cases:

  • ln1p(NaN) is NaN

  • ln1p(x) is NaN where x < -1.0

  • ln1p(-1.0) is -Inf

  • ln1p(+Inf) is +Inf

Since Kotlin

1.2

See also

function

function

actual inline fun ln1p(x: Double): Double(source)

Computes ln(x + 1).

This function can be implemented to produce more precise result for x near zero.

Special cases:

  • ln1p(NaN) is NaN

  • ln1p(x) is NaN where x < -1.0

  • ln1p(-1.0) is -Inf

  • ln1p(+Inf) is +Inf

Since Kotlin

1.2

See also

function

function


actual inline fun ln1p(x: Float): Float(source)

Computes ln(a + 1).

This function can be implemented to produce more precise result for x near zero.

Special cases:

  • ln1p(NaN) is NaN

  • ln1p(x) is NaN where x < -1.0

  • ln1p(-1.0) is -Inf

  • ln1p(+Inf) is +Inf

Since Kotlin

1.2

See also

function

function

actual inline fun ln1p(x: Double): Double(source)

Computes ln(x + 1).

This function can be implemented to produce more precise result for x near zero.

Special cases:

  • ln1p(NaN) is NaN

  • ln1p(x) is NaN where x < -1.0

  • ln1p(-1.0) is -Inf

  • ln1p(+Inf) is +Inf

Since Kotlin

1.2

See also

function

function


actual inline fun ln1p(x: Float): Float(source)

Computes ln(a + 1).

This function can be implemented to produce more precise result for x near zero.

Special cases:

  • ln1p(NaN) is NaN

  • ln1p(x) is NaN where x < -1.0

  • ln1p(-1.0) is -Inf

  • ln1p(+Inf) is +Inf

Since Kotlin

1.2

See also

function

function

actual external fun ln1p(x: Double): Double(source)

Computes ln(x + 1).

This function can be implemented to produce more precise result for x near zero.

Special cases:

  • ln1p(NaN) is NaN

  • ln1p(x) is NaN where x < -1.0

  • ln1p(-1.0) is -Inf

  • ln1p(+Inf) is +Inf

Since Kotlin

1.3

See also

function

function


actual external fun ln1p(x: Float): Float(source)

Computes ln(a + 1).

This function can be implemented to produce more precise result for x near zero.

Special cases:

  • ln1p(NaN) is NaN

  • ln1p(x) is NaN where x < -1.0

  • ln1p(-1.0) is -Inf

  • ln1p(+Inf) is +Inf

Since Kotlin

1.3

See also

function

function