this page in english  Diese Seite in deutsch

MuPAD 3.1 for Linux

This is MuPAD 3.1 for Linux.  It should run on all Linux distributions.  If you have any problems please contact bugs@mupad.de.


MuPAD 3.1 for Linux comes without a graphics tool.  The new rendering engine introduced with MuPAD Pro 3.0 for MS WindowsTM has not been ported to Linux yet.

The new graphics library is nevertheless available.  It supports 3 output formats:  XVC (MuPAD's native XML output format), XVZ (compressed XVC), and JVX (JavaView format, see below).  JavaView can be used as a renderer for MuPAD plot.

MuPAD 3.1 for Linux has no notebook functionallity which would allow editing old input sections and evaluate them again.  But MuPAD 3.1 for Linux can be used from within TeXmacs which offers this functionality.

How to get a license:

The installation has a memory limit of 6 MB.  To remove this limit, you will need to enter a registration key, which is available for free for non-commercial users at www.mupad.org.  Commercial users should contact SciFace Software or their local distributor.


Once you have obtained a license (consisting of a UserID and a Key), you can start MuPAD as a user with write access to the MuPAD installation (e.g. root) and issue the command:

register("UserID", "Key"):

After the next restart of MuPAD the memory limitation is removed.

JavaView and plotting in MuPAD:

For the installation and usage of JavaView, see below.

There is no renderer available under Linux for the native MuPAD graphics file formats XVC and XVZ.  But MuPAD can write graphics in the JavaView file format JVX.  MuPAD uses JavaView for plots automatically, if available (JavaView 3.84.000 or newer must be installed separately and the command javaview must be in the users PATH):

>> plotfunc3d(sin(x) - cos(y)):


MuPAD graphics in JavaView



>> color := (t, phi) -> RGB::fromHSV([(t+sin(4*phi))*180/PI, 1, 1]):
   plot(plot::Tube([sin(t), cos(t), 0], 0.4 + 0.3*cos(t), t=0..2*PI,
                   FillColorFunction = color)):

MuPAD graphics in JavaView

Restrictions:

The graphics displayed by JavaView are not identical to those rendered by the MuPAD graphics engine VCam because JavaView does not support all of VCams plot capabilities.  Particularly animation support is limited due to the different animation models in JavaView and MuPAD.

The nature of the JVX format puts some restrictions on what can be exported from a MuPAD XVC file:

If a MuPAD graphics holds more than one coordinate system only the first one is exported.


Usage of JavaView forMuPAD Plots:

If you want to use JavaView for graphics displays in MuPAD, JavaView must be separately installed (see below) and you have to load the package javaview.  If you add the line

package("javaview", Quiet):

to your MuPAD user init file ~/.mupad/userinit.mu, you activate plotting via JavaView permanently.


Installation of JavaView:

More details on the installation of JavaView come with the JavaView installation instructions.  The description offered here is a short version of the steps to be taken.

First of all make sure that Java is installed on your computer and that the command java is available is your PATH.

To install JavaView download javaview.zip from javaview.de (we assume the file goes into the /tmp/-folder) and unpack it somewhere on your machine, e.g. in /usr/local/JavaView:

cd /usr/local;  mkdir JavaView;  cd JavaView;  unzip /tmp/javaview.zip

The JavaView start script comes as a DOS file without execute permission.  Thus change:

chmod 755 /usr/local/JavaView/bin/javaview
dos2unix
/usr/local/JavaView/bin/javaview

Put the following script javaview somewhere in your path, e.g. in /usr/local/bin:


--------------------------- 8< ---
javaview --- 8< ------------------------
#!/bin/sh
exec
/usr/local/JavaView/bin/javaview "$@" > /dev/null 2>&1
--------------------------- 8< --- javaview --- 8< ------------------------

Now MuPAD will use JavaView for its graphics displays.

Free JavaView Registration:

JavaView can be registered for free to get rid of the “missing license” statement in the display window.


GNU TeXmacs support:

GNU TeXmacs is a free scientific text editor, which allows you to write structured documents via a wysiwyg (what-you-see-is-what-you-get) and user friendly interface.  MuPAD 3.1 for Linux can be used via TeXmacs.  If MuPAD is installed, it can be started via the terminal button in the toolbar (the one with the tooltip ‘Start an interactive session').  Here you can see a MuPAD session inside of TeXmacs:

MuPAD in TeXmacs


Before you download TeXmacs take a look at your Linux distribution.  It is likely that it is already part of your distribution.