log2
relationalai.semantics.std.math
log2(value: NumberValue) -> ExpressionCompute the base-2 logarithm.
Parameters
(valueNumberValue) - The positive input value. At run time a negative input has no value and 0 gives-inf.
Returns
Expression- AnExpressioncomputing log_2(value). ReturnsFloat.
Raises
ValueError- Ifxcan be computed statically and is non-positive.
Examples
Compute base-2 logarithm:
select(math.log2(1024))select(math.log2(Data.size))