Logarithm of one plus

Supported in: Batch, Faster, Streaming

Calculates the natural logarithm of one plus a number, ln(1 + x), more accurately than logarithm for values near zero. Returns null for values less than or equal to -1.

Expression categories: Numeric

Declared arguments

  • Expression: Number to add one to before taking the natural logarithm.
    Expression<Numeric>

Output type: Double

Examples

Example 1: Base case

Argument values:

  • Expression: value
valueOutput
1.00.6931471805599453

Example 2: Null case

Argument values:

  • Expression: value
valueOutput
nullnull