tuple_logtuple_logTupleLogTupleLogtuple_log (Operator)
Name
tuple_logtuple_logTupleLogTupleLogtuple_log
— Compute the natural logarithm of a tuple.
Signature
Herror tuple_log(double T, double* Log)
Herror T_tuple_log(const Htuple T, Htuple* Log)
def tuple_log(t: MaybeSequence[Union[float, int]]) -> Sequence[float]
def tuple_log_s(t: MaybeSequence[Union[float, int]]) -> float
Description
tuple_logtuple_logTupleLogTupleLogtuple_log
computes the natural logarithm of the input tuple
TTTtt
. The natural logarithm is always returned as a floating
point number. The natural 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_logtuple_logTupleLogTupleLogtuple_log
,
which can be used in an expression in the following syntax:
Log := log(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) →
HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input tuple.
Restriction:
T > 0
LogLogLogloglog
(output_control) number(-array) →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Natural logarithm of the input tuple.
Alternatives
tuple_log2tuple_log2TupleLog2TupleLog2tuple_log2
,
tuple_log10tuple_log10TupleLog10TupleLog10tuple_log10
See also
tuple_exptuple_expTupleExpTupleExptuple_exp
,
tuple_exp2tuple_exp2TupleExp2TupleExp2tuple_exp2
,
tuple_exp10tuple_exp10TupleExp10TupleExp10tuple_exp10
,
tuple_powtuple_powTuplePowTuplePowtuple_pow
Module
Foundation