Add two tuples.
::tuple_add computes the sum of the input tuples S1 and S2. If both tuples have the same length the corresponding elements of both tuples are added. Otherwise, either S1 or S2 must have length 1. In this case, the addition is performed for each element of the longer tuple with the single element of the other tuple. If two integer numbers are added, the result is again an integer number. If a floating point number is added to another number, the result is a floating point number. If two strings are added, the addition corresponds to a string concatenation. If a number and a string are added, the number is converted to a string first. Thus, the addition also corresponds to a string concatenation in this case.
|
S1 (input_control) |
number(-array) -> HTuple.double / long / char * |
| Input tuple 1. | |
|
S2 (input_control) |
number(-array) -> HTuple.double / long / char * |
| Input tuple 2. | |
|
Sum (output_control) |
number(-array) -> (HTuple.) double * / long * / char * |
| Sum of the input tuples. | |
Operators not requiring licensing