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. At run time a negative input has no value and 0 gives -inf.

Returns

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

Raises

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