Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » operators » ~
next | previous | forward | backward | up | index | toc

~ -- a unary or binary operator, often used for bitwise negation

See also

Menu

Ways to use symbol ~:

  • ~ ZZ -- logical not

For the programmer

The object ~ is a keyword.

This operator may be used as a binary operator in an expression like x~y. The user may install binary methods for handling such expressions with code such as

         X ~ Y := (x,y) -> ...

where X is the class of x and Y is the class of y.

This operator may be used as a prefix unary operator in an expression like ~y. The user may install a method for handling such expressions with code such as

           ~ Y := (y) -> ...

where Y is the class of y.


The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/Macaulay2Doc/operators.m2:547:0.