Skip to content

tuple_log2TupleLog2TupleLog2tuple_log2tuple_log2🔗

Short description🔗

tuple_log2TupleLog2TupleLog2tuple_log2tuple_log2 — Compute the base 2 logarithm of a tuple.

Signature🔗

tuple_log2( number T, out number Log )void TupleLog2( const HTuple& T, HTuple* Log )static void HOperatorSet.TupleLog2( HTuple t, out HTuple log )def tuple_log2( t: MaybeSequence[Union[float, int]] ) -> Sequence[float]

def tuple_log2_s( t: MaybeSequence[Union[float, int]] ) -> floatHerror tuple_log2( double T, double* Log )

Herror T_tuple_log2( const Htuple T, Htuple* Log )

HTuple HTuple::TupleLog2( ) const

HTuple HTuple.TupleLog2( )

Description🔗

tuple_log2TupleLog2 computes the base 2 logarithm of the input tuple Ttt. 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_log2TupleLog2, which can be used in an expression in the following syntax:

Log := log2(T)

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

Ttt (input_control) number(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[float, int]]Htuple (double / Hlong)

Input tuple.

Restriction: T > 0

Logloglog (output_control) number(-array) → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)

Base 2 logarithm of the input tuple.

Combinations with other operators🔗

Combinations

Alternatives

tuple_logTupleLog, tuple_log10TupleLog10

See also

tuple_expTupleExp, tuple_exp2TupleExp2, tuple_exp10TupleExp10, tuple_powTuplePow

Module🔗

Foundation