bryan

5 Reputation

2 Badges

20 years, 11 days

MaplePrimes Activity


These are replies submitted by bryan

On OS X

In the MATLAB install directory, the MTM installer creates two links called either

    MATLAB-SYM-MAPLE.app

    MATLAB-SYM-MATLAB.app

or

    StartMATLAB-SYM-MAPLE.app

    StartMATLAB-SYM-MATLAB.app

These links can be clicked to launch MATLAB with the Maple version ("...-SYM-MAPLE") or the MATLAB version ("...-SYM-MATLAB") of the toolbox.  These can also be dragged onto the dock.

If you wish to change the default version of the toolbox (used when the standard MATLAB link is clicked), edit the file

    MATLAB-INSTALL_DIR/bin/.maplerc

and change the setting of the variable

    MATLAB_SYMBOLIC

to either "maple" or "matlab".

On OS X, you can also launch MATLAB via a terminal, which behaves just as any other Unix platform, descrbed below.

 

On Unix

In the directory

    MATLAB-INSTALL-DIR/bin

there are two scripts

    matlab-sym-maple

    matlab-sym-matlab

created by the MTM installer. These scripts can be run to launch MATLAB with the Maple version ("...-sym-maple") or the MATLAB version ("...-sym-matlab") of the toolbox.

To change the default version of toolbox (when the MATLAB-INSTALL-DIR/bin/matlab script is run) edit the file

    MATLAB-INSTALL_DIR/bin/.maplerc

and change the setting of the variable

    MATLAB_SYMBOLIC

to either "maple" or "matlab".

 

 

 

Sorry, I guess I wasn't all that much more precise. I meant that the default sort order uses the address only. My intent was to point out the fact that you can't rely on the creation order.
More precisely, Maple sorts objects by memory address only. This is true up to and including Maple 11. An object that appears earlier in the session often has a lower address than an object that appears later, but this is not always the case, so it isn't something you can rely on.
In general, using define_external is kind of cheating, since you can execute any binary code you wish. However, as you say, in the context of security, this is a bug, or at least it is a limitation of the security model. In the development version, the security model has been improved to allow finer grained control over reading, writing and the external loading of files. It is possible to specify files and directories that can/can't be used for these types of operations. The -z option restricts these files to a sensible minimum.
If you would like the Maple version to be enabled by default, you need to set the environment variable MATLAB_SYMBOLIC=maple To set this on Windows, right-click "My Computer", then select "Properties...". On the "Advanced" tab, at the bottom click "Environment Variables". If it doesn't already exist, just create a new one.
Maple Toolbox for MATLAB is a Maple product and is intended to replace the older Symbolic Math Toolbox for MATLAB, which is a Mathworks product. Both toolboxes cannot be used at the same time, but it is possible (via a couple different mechanisms) to specify which toolbox you would like to use on MATLAB start-up. If you don't specify which one you would like, it uses the default, which you select during the installation of the Maple Toolbox for MATLAB. Of course, if you don't have the Symbolic Math Toolbox, then none of this should be relevant.
"mjava" is used by the kernel (mserver) for executing external calls to Java.
"mjava" is used by the kernel (mserver) for executing external calls to Java.
The display of the CFRAC expression as discussed here is due to a limitation in the way the parsed math is being obtained from the kernel. The mechanism we're using bypasses the pre-display processing done by the kernel. Bryan.
Page 1 of 1