tuple_sqrttuple_sqrtTupleSqrtTupleSqrttuple_sqrt (算子)

名称

tuple_sqrttuple_sqrtTupleSqrtTupleSqrttuple_sqrt — 计算元组的平方根。

签名

tuple_sqrt( : : T : Sqrt)

Herror tuple_sqrt(double T, double* Sqrt)

Herror T_tuple_sqrt(const Htuple T, Htuple* Sqrt)

void TupleSqrt(const HTuple& T, HTuple* Sqrt)

HTuple HTuple::TupleSqrt() const

static void HOperatorSet.TupleSqrt(HTuple t, out HTuple sqrt)

HTuple HTuple.TupleSqrt()

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

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

描述

tuple_sqrttuple_sqrtTupleSqrtTupleSqrtTupleSqrttuple_sqrt computes the square root of the input tuple TTTTtt. The square root is always returned as a floating point number. The square root 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_sqrttuple_sqrtTupleSqrtTupleSqrtTupleSqrttuple_sqrt, which can be used in an expression in the following syntax:

Sqrt := sqrt(T)

执行信息

参数

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

Input tuple.

限制: T >= 0

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

Square root of the input tuple.

替代

tuple_powtuple_powTuplePowTuplePowTuplePowtuple_pow

另见

tuple_cbrttuple_cbrtTupleCbrtTupleCbrtTupleCbrttuple_cbrt, tuple_hypottuple_hypotTupleHypotTupleHypotTupleHypottuple_hypot

模块

基础