Description Usage Arguments Value Examples
These simple functions perform common computations on vectors:
l1 and l2 norms, unit length normalization, dot products, and angles.
1 2 3 4 5 6 7 8 9 |
v, v1, v2 |
Numeric vectors or 1 x |
l1 returns the l1 norm of the vector.
l2 returns the l2 norm of the vector.
normalize returns the vector normalized to unit length, or
an error if passed the zero vector.
dot returns the dot product of two vectors.
angle returns the angle between the two vectors in radians.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.