# wsum

**Syntax**

wsum(X, Y)

**Arguments**

X and Y are scalar/vector.

**Details**

Return the inner product of two vectors with the same length.

Please note that the data type of the result is DOUBLE, even if both X and Y are integers.

**Examples**

```
$ wsum(7 8 9, 1 2 3);
50
// 7*1 + 8*2 + 9*3 = 50
```

Related function: wavg