minussign INDEX

- _ _ _ MINUSSIGN _ _ _ _ _ _ _ _ _ _ _ _ operator

The - operator is a prefix or infix binary subtraction operator, as wel l as the unary minus operator.

syntax:

<expression> - <expression> or -(<expression>,<expression>)

<expression> may be any valid REDUCE expression.

examples:


15 - 4; 

  11 


x*(-5); 

  - 5*X 


a - b - 15; 

  A - B - 15 


-(a,4); 

  A - 4

The subtraction operator is left associative, so that a - b - c is equivalent to (a - b) - c, as shown in the third example. The subtraction operator is also valid with matrix expressions of the correct dimensions and with equations.