ListTools
DotProduct
compute the dot product of two lists
Calling Sequence
Parameters
Description
Examples
DotProduct(L1, L2)
L1, L2
-
lists
The DotProduct(L1, L2) calling sequence computes the real dot product of two lists, L1 and L2, where both lists have equal length.
To find the inner product, use DotProduct(L1, map(conjugate, L2)).
with⁡ListTools:
L≔0.,0.84,0.91,0.14,−0.76,−0.96,−0.28,0.66,0.99,0.41,−0.54
M≔1.,0.54,−0.42,−0.99,−0.65,0.28,0.96,0.75,−0.15,−0.91,−0.84
DotProduct⁡L,L
5.0063
DotProduct⁡L,M
0.3162
See Also
list
map
type/list
Download Help Document