- -- a unary or binary operator, usually used for negation or subtraction
Synopsis
Usage:
-y x-y
Description
In most cases, this operator refers to standard negation or subtraction.
In many cases, the integer 1 can be used as the identity, and scalars function as multiples of the identity. For example, the 1 below refers to the identity matrix and the 2 to twice the identity matrix.
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