tuple_fabstuple_fabsTupleFabsTupleFabstuple_fabs (算子)

名称

tuple_fabstuple_fabsTupleFabsTupleFabstuple_fabs — 计算元组的绝对值(作为浮点数)。

签名

tuple_fabs( : : T : Abs)

Herror tuple_fabs(double T, double* Abs)

Herror T_tuple_fabs(const Htuple T, Htuple* Abs)

void TupleFabs(const HTuple& T, HTuple* Abs)

HTuple HTuple::TupleFabs() const

static void HOperatorSet.TupleFabs(HTuple t, out HTuple abs)

HTuple HTuple.TupleFabs()

def tuple_fabs(t: MaybeSequence[Union[float, int]]) -> Sequence[float]

def tuple_fabs_s(t: MaybeSequence[Union[float, int]]) -> float

描述

tuple_fabstuple_fabsTupleFabsTupleFabsTupleFabstuple_fabs computes the absolute value of the input tuple TTTTtt. In contrast to tuple_abstuple_absTupleAbsTupleAbsTupleAbstuple_abs, the absolute value is always returned as a floating point number by tuple_fabstuple_fabsTupleFabsTupleFabsTupleFabstuple_fabs. The absolute value of a string is not allowed.

例外:空输入元组

If the input tuple is empty, the operator returns an empty tuple.

HDevelop 内联操作

HDevelop provides an in-line operation for tuple_fabstuple_fabsTupleFabsTupleFabsTupleFabstuple_fabs, which can be used in an expression in the following syntax:

Abs := fabs(T)

执行信息

参数

TTTTtt (输入控制)  number(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Input tuple.

AbsAbsAbsAbsabsabs (输出控制)  number(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Absolute value of the input tuple.

替代

tuple_abstuple_absTupleAbsTupleAbsTupleAbstuple_abs

模块

基础