Minus

-x

is the arithmetic negation of x.

Details

  • -x is converted to Times[-1,x] on input.

Examples

Basic Examples  (4)

Minus automatically distributes over groupings:

Minus threads element-wise over lists:

Explicit FullForm:

Pattern match both x and -x:

Introduced in 1988
 (1.0)