tuple_log2tuple_log2TupleLog2TupleLog2 (Operator)
Name
tuple_log2tuple_log2TupleLog2TupleLog2
— Compute the base 2 logarithm of a tuple.
Signature
Herror tuple_log2(double T, double* Log)
Herror T_tuple_log2(const Htuple T, Htuple* Log)
Description
tuple_log2tuple_log2TupleLog2TupleLog2TupleLog2
computes the base 2 logarithm of the input
tuple TTTTt
. The logarithm is always returned as a floating
point number. The logarithm of a string is not allowed.
Exception: Empty input tuple
If the input tuple is empty, the operator returns an empty tuple.
HDevelop In-line Operation
HDevelop provides an in-line operation for tuple_log2tuple_log2TupleLog2TupleLog2TupleLog2
,
which can be used in an expression in the following syntax:
Log := log2(T)
Execution Information
- Multithreading type: independent (runs in parallel even with exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
TTTTt
(input_control) number(-array) →
HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input tuple.
Restriction: T > 0
LogLogLogLoglog
(output_control) number(-array) →
HTupleHTupleHtuple (real) (double) (double) (double)
Base 2 logarithm of the input tuple.
Alternatives
tuple_logtuple_logTupleLogTupleLogTupleLog
,
tuple_log10tuple_log10TupleLog10TupleLog10TupleLog10
See also
tuple_exptuple_expTupleExpTupleExpTupleExp
,
tuple_exp2tuple_exp2TupleExp2TupleExp2TupleExp2
,
tuple_exp10tuple_exp10TupleExp10TupleExp10TupleExp10
,
tuple_powtuple_powTuplePowTuplePowTuplePow
Module
Foundation