search for:
{...} + {...}
-- sum of two vectors
Synopsis:
Usage:
x = v+w
Operator:
+
-- a binary operator
Input:
v
, an instance of class
List
: a list interpreted as a vector
w
, an instance of class
List
: a list interpreted as a vector
Output:
x
, an instance of class
List
: the sum of the two vectors
Code:
-- ../m2/lists.m2:10 List + List := List => (v,w) -> apply(v,w,plus)
search for: