[top][index]
search for:

Tally ? Tally -- comparison of tallies

Synopsis:

  • Operator: ? -- comparison operator
  • Input:
  • an instance of class Tally.
  • an instance of class Tally.
  • Next more general method: Thing ? Thing -- comparison operator

  • x ? y -- compares two tallies, returning symbol <, symbol >, symbol ==, or incomparable.

    See also:

  • Tally -- the class of all tally results
  • Code:

         -- ../../../Macaulay2/m2/set.m2:16-21
         Tally ? Tally := (x,y) -> (
              w := values (x-y);
              if #w === 0 then symbol ==
              else if all(w,i -> i>0) then symbol >
              else if all(w,i -> i<0) then symbol <
              else incomparable)

    [top][index]
    search for: