dot (Vector)
Returns dot-product of two vectors with the same dimension.
Arguments
vector0
and vector1
are the Vectors to calculate dot-product for. If their dimensions are different, an error will occur.
Return values
Realnumber
is the dot-product of the vectors.
Complexity
O(dimension)
Example
Output:
14.000000