Using Maple Remotely

Starting Your Remote Session

You can use Maple V when you are remotely logged on to the RCS computing environment, such as rcs.rpi.edu, rcs-ibm.rpi.edu, or rcs-sun.rpi.edu. This document assumes your remote connection only supports Maple using the character-based interface.

After logging on, start Maple by entering the command

   maple

Saving and Printing Your Remote Session Input/Output

Use the UNIX script command to save your remote session input and output. A brief example of a saved remote session appears below:

  (1) script maple.log
  Script started, file is maple.log
  (2) maple
      |\^/|     Maple V Release 4 (WMI Campus Wide License)
  ._|\|   |/|_. Copyright (c) 1981-1996 by Waterloo Maple Software and the
   \  MAPLE  /  University of Waterloo. All rights reserved. Maple and Maple
V
   <____ ____>  are registered trademarks of Waterloo Maple Software.
        |       Type ? for help.
  > f:=x^2 + 2*x +2;
                                       2
                                 f := x  + 2 x + 2
  > diff(f,x);
                                      2 x + 2
  > quit;
  bytes used=337444, alloc=262096, time=0.5
  (3) exit
  Script done, file is maple.log

The file maple.log contains the input and output from running Maple. Use the lpr command to print the script file. For example:

   lpr maple.log

Saving Your Maple Computations

Use the Maple save command to save the status of your Maple computations. For example:

   save `mystuff.m`;

All variables and procedures defined during the Maple session will be saved in the file mystuff.m. Please note that the filename must be enclosed in BACK quotes and must have a .m file extension. To continue the computation a later time, use the Maple read command to load your variables and procedures. For example:

   read `mystuff.m`;

Maple Plots

When you issue a plot or a plot3d command, the plot will appear on the screen as a character plot (not a graphics plot, as you would see on a workstation screen). For example, it might appear more like this:

plot(cos(x),x=-10..10);
               AAA                   1A*A                    AAA
              AA AA                  AA+AA                  AA  A
             AA   A                 AA + A                  A   AA
             A    AA                A  +  A                AA    A
            AA     A               AA  +  A                A     AA
            A      A               0.5 +   A               A      A
           AA       A              A   +   A              A       A
           A        A             AA   +    A             A        A
           A        AA            A    +    A            AA        A
          A          A            A    +    A            A          A
          A          A           A     |     A          AA          A
  +---+--+*--+---+--+-*-+---+---+*-+---+---+-*+---+---+-*-+--+---+--*+--+---+
 -10     A         -5 A          A   0 0     A          A 5          A     10
         A            AA        A      +      A        AA            A
         A             A        A      +      A        A             A
        A              A        A      +      AA       A              A
        A              AA      A  -0.5 +       A      A               A
       AA               A     AA       +       A      A               AA
       A                AA    A        +        A    AA                A
  A   AA                 A    A        +        AA   A                 AA   A
  AA AA                   A  A         +         A  A                   AA AA
   AAA                    AAA       -1 +          AAA                    AAA

To get a high-resolution graph, use the saveplot command. For example:

   saveplot(`cos.ps`,cos(x),x=-10..10);

A high-resolution cosine plot is written to the PostScript file cos.ps. (For more details on using the saveplot command, enter ?saveplot at the Maple >> prompt. Print the plot by entering

   system(`lpr cos.ps`);

at the Maple prompt or by entering

   lpr cos.ps

at the UNIX prompt. The plot will print on the PostScript printer associated with the machine at which you are logged in. To specify a particular printer, use the -Pprinter_name option with the lpr command, as shown below:

   system(`lpr -Pvclw cos.ps`);

or

   lpr -Pvclw cos.ps

3D Plots

You plot 3D plots in much the same way as you do 2D plots, except you use the saveplot3d command. For example:

   saveplot3d(`sin.ps`,sin(x+y),x=-1..1,y=-1..1);

Enter ?saveplot3d at the Maple >> prompt for more details on the saveplot3d command.


Other Maple Topics

Click on an item listed below to access additional information on a variety of Maple-related topics.


Return to the ACS Consulting home page.

Return to the Software page.


Return to ACS home page.


Please send comments and suggestions to

consult@rpi.edu