Data Types, Structures

Elementary Expressions

The central object of REDUCE is the formal expression, which is built with respect to the common mathematical rules. Elementary items are

A symbol here can play the role of an unknown in the mathematical sense, as well as a placeholder for a value. An expression can be assigned to a symbol as a value such that later all references to the symbol are replaced by the assigned value.

Examples of elementary expressions:


    3.1415928      % fraction
    a              % simple variable
    (x+y)**2 / 2   % quadratic expression
    log(u)+log(v)  % function

Aggregates

There are data structures that collect a number of formal expressions:


Reduce Homepage


Winfried Neun, 13-July-1999