Function add( array1, array2 )

Description:
Returns the result of adding two numeric arrays element by element. Both arrays must be numeric, and the arrays must have the same length. If either of those conditions is not true, null is returned. The types of the arrays do not need to be the same, so for example it is permitted to add an integer array to a floating point array.
Parameters:
array1 (Object)
first array of numeric values
array2 (Object)
second array of numeric values
Return Value (array of floating point):
element-by-element sum of array1 and array2, the same length as the input arrays
Example:
add(array(1,2,3), array(0.1,0.2,0.3)) = [1.1, 2.2, 3.3]
Signature:
double[] add(Object, Object)