Functions Index :: A :: ArraySumProduct

[<< up one level]

Module:

array :: functions

Definition:

ArraySumProduct(string array1, string array2)

Description:

Returns the sum of the products of all pairs of the corresponding elements of array1 and array2.

In effect (taking into account that an array is the representation of a vector) the function is the equivalent of the internal product of two vectors.

Examples:

a1 = "0.5, 1.0, 1.5, 2.0, 2.5"

ip = ArraySumProduct(a1, a1) # ip == 13.75

 

[<< top]