Skip to content

log10

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

Compute the base-10 logarithm.

Parameters

  • value

    (NumberValue) - The positive input 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 log_10(value). Returns Float.

Raises

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

Examples

Compute base-10 logarithm:

select(math.log10(1000))
select(math.log10(Signal.power))