I/O

In interactive mode, REDUCE normally prints results in a two dimensional ``mathematical'' form, where exponents are raised, quotients are printed with denominator below numerator, and matrices are represented as rectangular blocks. The output can be influenced by a variety of switches, e.g. for reordering or collecting of terms.

For special purposes, additional output forms are available:

Examples for q:=(x+y)**3:

natural (default) output:


      3      2          2    3
Q := X  + 3*X *Y + 3*X*Y  + Y
for later re-use:

Q := X**3 + 3*X**2*Y + 3*X*Y**2 + Y**3$
as contribution to a FORTRAN source:

      Q=X**3+3.*X**2*Y+3.*X*Y**2+Y**3
for a LaTeX document:

\begin{displaymath}
q=x^{3}+3 x^{2} y+3 x y^{2}+y^{3}
\end{displaymath}

In addition to direct terminal access, I/O can also be redirected to files.


REDUCE Homepage


Winfried Neun, 13-July-1999