Operators > Algebra Operators > Negation and Subtraction Operator
  
Negation and Subtraction Operator
Operator
Description
Keyboard Shortcut
Returns the negative of x. If x is an array, each element in the array is negated.
Subtracts y from x. If x is an array and y is a scalar, then x − y is an array formed by subtracting y from every element in x.
Operands
x, y are scalars, vectors, or matrices. If both x and y are arrays, they must have the same number of rows and columns.
Additional Information
To type a negation as opposed to a subtraction, place the cursor in front of the value to be negated: