Skip to content

natural_log

relationalai.semantics.std.math
natural_log(value: NumberValue) -> Expression

Compute the natural logarithm (ln).

Parameters

  • value

    (NumberValue) - A positive input number value. If the input value is not statically known to be non-positive, but turns out to be non-positive at runtime, returns NaN.

Returns

  • Expression - An Expression computing ln(value). Always returns a Float.

Raises

  • ValueError - If value is can be computed statically and is non-positive.