Operator Reference

tuple_sqrttuple_sqrtTupleSqrtTupleSqrttuple_sqrt (Operator)

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_sqrtTupleSqrtTupleSqrttuple_sqrt computes the square root of the input tuple TTTtt. 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_sqrtTupleSqrtTupleSqrttuple_sqrt, which can be used in an expression in the following syntax:

Sqrt := sqrt(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

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

Square root of the input tuple.

Alternatives

tuple_powtuple_powTuplePowTuplePowtuple_pow

See also

tuple_cbrttuple_cbrtTupleCbrtTupleCbrttuple_cbrt, tuple_hypottuple_hypotTupleHypotTupleHypottuple_hypot

Module

Foundation