Obtaining REDUCE

The REDUCE computer algebra system is released free-of-charge under a modified BSD license and can be obtained in two main versions from . There are also independent distributions available for some platforms not explicitly supported by the REDUCE developers. This page explains how to download, install and run REDUCE on the most widely-used platforms.

The easy way to obtain REDUCE

This is to download and install a pre-packaged REDUCE distribution that contains all the necessary binary files as well as documentation (and the main REDUCE source code). We currently distribute REDUCE in this way primarily for Microsoft Windows, Apple MacOS and some versions of GNU/Linux. This approach should work well if you use a supported platform and don't need the very latest updates. Simply click on the logo to visit the project page and then, towards the top of the page, you should see a large green button containing the word Download with a filename below it. SourceForge uses heuristics to pick a recent distribution file with an appropriate extension for your platform automatically (although it might get it wrong, especially for GNU/Linux).

Note that we do not provide any automatic update facility; to update REDUCE just install it again. This is probably a good idea every year or so, or if you have encountered errors (and especially if you believe they have been fixed).

Using Microsoft Windows and Apple MacOS

The Download button should include a filename of the form:

  • Reduce-Setup_yyyy-mm-dd.exe on Microsoft Windows
  • Reduce-snapshot_yyyy-mm-dd.dmg on Apple MacOS

where yyyy-mm-dd represents the release date in numerical format.

Download the recommended file to your computer and install REDUCE in the normal way: on Windows, double-click on the installer file to execute it; on MacOS, double-click on the installer file to open it and then drag the REDUCE icon to your Applications folder. This process will install the CSL and/or PSL versions of REDUCE, which you can then run like any other application; for example, on Windows the Start menu will contain a folder called Reduce that contains applications called CSL Reduce and/or PSL Reduce, which you can run by clicking on them – more detail is available below.

Using GNU/Linux

The Download button should include a filename of the form:

  • reduce-complete_yyyy-mm-dd_arch.deb on Debian-based Linux (e.g. Ubuntu)
  • reduce-complete_yyyy-mm-dd.arch.rpm on Red Hat-based Linux (e.g. Fedora and openSUSE)

where yyyy-mm-dd represents the release date in numerical format and arch represents the architecture, e.g. amd64 or x86_64 for 64-bit processors.

Download the recommended file to your computer, open the Downloads folder and install REDUCE in the normal way, e.g. on Ubuntu, double-click on the installer file and then click on the Install button. This process will install both the CSL and PSL versions of REDUCE, which you can then run like any other application.

If the above instructions do not work or you do not want to install both the CSL and PSL versions of REDUCE then you should ignore the default download file and proceed as follows. Below the green Download button is a link labelled Browse All Files and clicking on that link or the Files link on the toolbar takes you to a page offering recent REDUCE distributions for all supported platforms. Each distribution is a directory, which normally contains the Windows and MacOS distribution files as described above plus a generic source code bundle in the form of a compressed tar file and sets of distribution files for GNU/Linux in the form of compressed tar files, .rpm files and .deb files. These sets of files include separate distributions for CSL and PSL, for Intel and AMD processors and for 32- and 64-bit architectures. You need to choose and install the right files for your computer, which will include a file with a name of the form reduce-common… plus the appropriate CSL and/or PSL distribution files for your architecture. (We also provide distributions that combine the common, CSL and PSL components into a single distribution file for each architecture that we support, as described above.)

If you don't find a distribution here that you can use then please check the independent distributions.

To run REDUCE on Linux, first open a Terminal window. Then executing redpsl will start PSL REDUCE with a CLI, whereas executing redcsl will start REDUCE with a GUI (and executing redcsl --nogui will start CSL REDUCE with a CLI). (The commands redpsl and redcsl are shell scripts installed in /usr/bin, which run binary files installed in /usr/lib/reduce.)

Using other platforms

On a platform for which we do not currently provide REDUCE distributions, such as Android, the green box will instead be blue and labelled Browse Code. Clicking on it takes you to the Subversion code repository, where you may find source code for a particular platform.

The hard way to obtain REDUCE

If the easy way doesn't work then you have the option of building REDUCE from the source code. For guidance on doing this, please see Chapter 2 of Inside Reduce. There are also brief general installation instructions for all platforms and installation instructions for Microsoft Windows users, but these documents are now somewhat out of date. See also Installation on the REDUCE Wiki.

More details of installing and running REDUCE on Windows

The Windows installer gives you the option to install the REDUCE source code, files for CSL and files for PSL. The source code is entirely optional and only relevant if you want to understand how REDUCE works and/or modify it. You need to install files for CSL and/or files for PSL: CSL will give you a graphical user interface (GUI) by default like that shown in the main image on the home page, but can also be run with a command-line interface (CLI); PSL will give you a CLI running in a standard Windows Command Prompt window. Beware that the REDUCE installation process will overwrite any previous installation without warning (which is probably what you want).

Once you have installed REDUCE, you will see a folder called "Reduce" in your Start menu, which contains "CSL Reduce" and/or "PSL Reduce". (You may also see other items such as "CSL Bootstrap Reduce" and "CSL Lisp system", which are probably only of interest to developers. You can safely ignore or remove them. If you can't unpin them from the list of applications, you can remove the underlying shortcuts by right-clicking on the menu item, selecting "More > Open file location" and then deleting the shortcuts.)

If you want to run REDUCE in an existing Command Prompt window (rather than have REDUCE open its own window), note that the PSL Reduce Start menu item runs the command "C:\Program Files\Reduce\bin edpsl.bat". You can either enter this long command name after a command prompt (including the quotes), or you can add "C:\Program Files\Reduce\bin\" to your command search path. The REDUCE installer does not do this for you. You can change your command search path permanently via the Advanced tab of the System Properties dialogue, which you can find in Control Panel or by searching. In Windows 10, typing Adv into Cortana seems to suffice! Click on the "Environment Variables…" button at the bottom of the Advanced tab, then edit the Path variable to include "C:\Program Files\Reduce\bin\". Editing the user variable is slightly safer than editing the system variable and will suffice unless you want the change to apply to all users. Then opening a Command Prompt window and executing redpsl will start PSL REDUCE (with a CLI), whereas executing redcsl will start REDUCE with a GUI (and executing redcsl --nogui will start CSL REDUCE with a CLI).

If you have Cygwin installed then the REDUCE installer automatically adds a number of commands to the Cygwin /usr/local/bin/ directory, in particular redcsl and redpsl. These commands are automatically accessible from a Cygwin shell and run respectively the GUI and command-line versions of REDUCE as described above.