Multiplies each element of the first input vector by each element of the second input vector. If there are more than two input vectors, the command multiplies each element of the result of the previous multiplication by the corresponding element of the next input vector. The final result replaces the contents of the result variable. If the input vectors are of different lengths, the shorter vectors will be "extended" to the length of the longest by repeating their last element as many times as necessary. This extension is only done internally and does not change the actual size or content of the shorter vectors. Multiplying "Missing" values (represented by a "." Or "NaN") results in NaN. |
DATA 1,10 A The above program produces the following output: `B: (2.0 4.0 6.0 8.0 10.0 12.0 14.0 16.0 18.0 20.0)` The next program... DATA 1,10 A DATA 1,5 B produces the following output: A: (1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10.0) B: (1.0 2.0 3.0 4.0 5.0) C: (2.0 8.0 18.0 32.0 50.0 60.0 70.0 80.0 90.0 100.0) Note that the size of B is unchanged. |