tuple_sqrttuple_sqrtTupleSqrtTupleSqrttuple_sqrt (Operator)

Name

tuple_sqrttuple_sqrtTupleSqrtTupleSqrttuple_sqrt — Compute the square root of a tuple.

Signature

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

Description

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.

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_sqrttuple_sqrtTupleSqrtTupleSqrtTupleSqrttuple_sqrt, which can be used in an expression in the following syntax:

Sqrt := sqrt(T)

Execution Information

Parameters

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

Input tuple.

Restriction: T >= 0

SqrtSqrtSqrtSqrtsqrtsqrt (output_control)  number(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Square root of the input tuple.

Alternatives

tuple_powtuple_powTuplePowTuplePowTuplePowtuple_pow

See also

tuple_cbrttuple_cbrtTupleCbrtTupleCbrtTupleCbrttuple_cbrt, tuple_hypottuple_hypotTupleHypotTupleHypotTupleHypottuple_hypot

Module

Foundation