slash INDEX

/ _ _ _ SLASH _ _ _ _ _ _ _ _ _ _ _ _ operator

The / operator is a prefix or infix binary division operator or prefix unary reciprocal operator.

syntax:

<expression>/<expression> or /<expression>

or /(<expression>,<expression>)

<expression> may be any valid REDUCE expression.

examples:


20/5; 

  4  


100/6; 

  50
  -- 
  3


16/2/x; 

  8
  - 
  X


/b; 

  1
  - 
  B


/(y,5); 

  Y
  - 
  5


on rounded; 

35/4; 

  8.75 


/20; 

  0.05

The division operator is left associative, so that a/b/c is equivalent to (a/b)/c. The division operator is also valid with square matrix expressions of the same dimensions: With A and B both n x n matrices and B invertible, A/B is given by A*B^-1. Division of a matrix by a scalar is defined, with the results being the division of each element of the matrix by the scalar. Division of a scalar by a matrix is defined if the matrix is invertible, and has the effect of multiplying the scalar by the inverse of the matrix. When / is used as a reciprocal operator for a matrix, the inverse of the matrix is returned if it exists.