DEFINE INDEX

DEFINE _ _ _ _ _ _ _ _ _ _ _ _ command

The command define allows you to supply a new name for an identifier or replace it by any valid REDUCE expression.

syntax:

define<identifier>=<substitution> {,<identifier>=<substitution>}*

<identifier> is any valid REDUCE identifier, <substitution> can be a number, an identifier, an operator, a reserved word, or an expression.

examples:



define is= :=, xx=y+z; 


a is 10; 

  A := 10 



xx**2; 

   2             2
  Y   + 2*Y*Z + Z  



xx := 10; 

  Y + Z := 10

The renaming is done at the input level, and therefore takes prece dence over any other replacement or substitution declared for the same identifier. It remains in effect until the end of the REDUCE session. Be careful with it, since you cannot easily undo it without ending the session.