tuple_costuple_cosTupleCosTupleCostuple_cos (Operator)
Name
tuple_costuple_cosTupleCosTupleCostuple_cos
— Compute the cosine of a tuple.
Signature
Herror tuple_cos(double T, double* Cos)
Herror T_tuple_cos(const Htuple T, Htuple* Cos)
def tuple_cos(t: MaybeSequence[Union[float, int]]) -> Sequence[float]
def tuple_cos_s(t: MaybeSequence[Union[float, int]]) -> float
Description
tuple_costuple_cosTupleCosTupleCostuple_cos
computes the cosine of the input tuple TTTtt
.
The cosine is always returned as a floating point number in CosCosCoscoscos
.
The angles in TTTtt
are represented in radians. The
cosine 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_costuple_cosTupleCosTupleCostuple_cos
,
which can be used in an expression in the following syntax:
Cos := cos(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) angle.rad(-array) →
HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)
Input tuple.
CosCosCoscoscos
(output_control) number(-array) →
HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)
Cosine of the input tuple.
Alternatives
tuple_sintuple_sinTupleSinTupleSintuple_sin
,
tuple_tantuple_tanTupleTanTupleTantuple_tan
See also
tuple_acostuple_acosTupleAcosTupleAcostuple_acos
,
tuple_coshtuple_coshTupleCoshTupleCoshtuple_cosh
,
tuple_acoshtuple_acoshTupleAcoshTupleAcoshtuple_acosh
Module
Foundation