[top][index]
search for:

{...} - {...} -- sum of two vectors

Synopsis:

  • Usage: x = v-w
  • Operator: - -- a unary or binary operator, usually used for negation or subtraction
  • 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 difference of the two vectors
  • Code:

         -- ../../../Macaulay2/m2/lists.m2:12
         List - List  := List => (v,w) -> apply(v,w,difference)

    [top][index]
    search for: