Documentation Center

  • Trial Software
  • Product Updates

Set Engine Preferences

Change Global Settings

Global settings in MuPAD® serve for specifying a particular engine you want to run, using additional libraries, startup commands and options. To change global settings:

  1. Select View > Configure.

  2. In the left pane of the Configure MuPAD dialog box, click Engine.

  3. Use the right pane to change the following settings:

    • Engine. Path to the MuPAD engine that you want to use. Leaving this field empty indicates that you want to use the default engine.

    • Library Path. Path to the standard set of the MuPAD libraries that you want to use. Leaving this field empty indicates that you want to use the default library.

    • Package Path. Path to additional libraries (packages) you that want to use. Leaving this field empty indicates that you want to use the default packages.

      User Init Path. Path to the folder containing initialization file (userinit.mu). This file contains startup commands for MuPAD notebooks. You can add your own commands to the initialization file.

    • Arguments. Options you want to use when starting MuPAD engine. See the list of Options Available When Starting Engine.

Restore Default Global Settings

To restore the default global settings:

  1. Select View>Configure.

  2. In the left pane of the Configure MuPAD dialog box, click Engine.

  3. In the right pane, click Reset To Defaults button. Clicking this button clears all fields, except for User Init Path.

Add Hidden Startup Commands to All Notebooks

You can run MuPAD commands every time you start the engine without displaying these commands in a notebook. If you want to use hidden commands for a particular notebook, see Hiding Code Lines. To add startup commands to all MuPAD notebooks:

  1. Select View>Configure.

  2. In the left pane of the Configure MuPAD dialog box, click Engine.

  3. In the User Init Path field, specify the path to the initialization file containing your commands.

Options Available for MuPAD Engine Startup

You can use the following options on the startup of the MuPAD engine.

-g

Start the engine in debug mode. The engine creates debug nodes during the initial read of the MuPAD library. Without this option MuPAD creates the nodes during a debug session (after the first debug call). Then, it writes the information about passes through the nodes to a temporary file.

-v

Start the engine in the debug mode. MuPAD displays more detailed debug information in the output pane of the Debugger window.

-f

Suppress reading the initialization files. Use this option to test your code without deleting the files or the path specified in the User Init Path field.

-F

Suppress reading all the package files from the path specified in the Package Path field. Use this option to test your code without deleting the files or the path.

-L number

Set the limit of precalculated prime numbers. The engine calculates and stores all prime numbers that are less than the number at startup. The default startup number is 1000000. You can increase this number. The maximum value for this option is 436273009.

-U string

Specify options as strings. See Pref::userOptions for details.

-t

Start the engine in the test coverage mode. See prog::tcov for details.

-T filename

Start the engine in the test coverage mode and export the test coverage information to filename. See prog::tcov for details.

Was this topic helpful?