Using Risa/Asir in the command line

When we use the Risa/Asir on the command line, we recommend to edit inputs in a text editor like "emacs" and load the input file to the Risa/Asir by the "load" command.
  1. Open a terminal from which we can start the emacs and in which Risa/Asir runs.
  2. Start the emacs text editor. Inputs will be stored in the file "test.rr".
  3. Input the following commands of Risa/Asir in emacs. "fctr" is a function to factor a polynomial.
  4. Save the inputs to the file "test.rr". We can use ctrl-x ctrl-s as a keyboard short cut.
  5. If the saving is done, you will get the following message in the bottom of the emacs screen.
  6. Check if the file is generated in the unix shell in the terminal.
  7. Start Risa/Asir by the command "openxm fep asir". Note that we have two windows. One is the terminal and the another is emacs.
  8. We can execute the file "test.rr" by the command load("test.rr");
  9. These are the output.
  10. Let us see what happens when the input file contains a syntax error.
  11. After saving the file test.rr, input load("test.rr"); to asir. You can edit the input by the arrow key and recall the previous inputs by the up arrow key.
  12. To exit the Risa/Asir and return to the unix shell, type in "quit;".

Using Risa/Asir in emacs

  1. Start the emacs and type in "esc x shell" to start the unix shell in the emacs. You can start the unix shell in the emacs by starting emacs with "emacs -e shell "
  2. Start the Risa/Asir with the command "openxm asir" in the emacs shell buffer. Note that fep is not called in this case. The fep provides a line editing ability.