FromMmaNotebook - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


MmaTranslator[FromMmaNotebook]

translate a Mathematica notebook to a Maple worksheet

convert/FromMmaNotebook

translate a Mathematica notebook to a Maple worksheet

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

FromMmaNotebook(Mma_notebook_filename, options)

convert(Mma_notebook_filename, FromMmaNotebook, options)

Parameters

Mma_notebook_filename

-

Mathematica notebook filename or a list of filenames

options

-

(optional) keywords display or XML; specify that a worksheet or an XML representation is returned

FromMmaNotebook

-

literal name; FromMmaNotebook

Description

• 

The FromMmaNotebook(Mma_notebook_filename) and the convert(Mma_notebook_filename, FromMmaNotebook) commands translate a Mathematica notebook to a Maple worksheet and saves the results to disk. These commands enable Mathematica users to automatically translate their Mathematica notebooks to Maple worksheets.

• 

You can also use the Mathematica Translator to translate Mathematica input and notebooks to Maple input and worksheets.  For more information, see the MmaTranslator[MmaToMaple] help page.

• 

The translated Maple worksheet is saved in the same directory as the Mathematica notebook with the same filename and a .mw file extension. Mathematica notebook filenames must be enclosed in double quotes (") or left single quotes (`).

  

Note: If a Maple worksheet with that name already exists, a warning displays on the screen and the translated worksheet automatically overwrites the existing file.

• 

If you specify the optional argument display, the translated notebook displays in a new worksheet and is not saved to the disk.

• 

If you specify the optional argument XML, the related XML representation returns.

• 

You can translate multiple Mathematica notebooks using one command. To do this, enter the first parameter Mma_notebook_filename as a list of Mathematica notebook filenames. You can save them to disk or open them in new worksheets.

• 

Important Note: Most interface elements in a Mathematica notebook have an equivalent in a Maple worksheet, but not all. In these cases, the translator either raises a warning and attempts the closest translation or fails to translate that particular portion and requires interactive manipulation. For more information, see MmaTranslator/exceptions.

Examples

> 

with⁡MmaTranslator

FromMma,FromMmaNotebook,Mma,MmaToMaple

(1)

The following two commands save the translated Maple worksheet, MyNotebook.mw, to disk.

> 

convert⁡MyNotebook.nb,FromMmaNotebook

> 

FromMmaNotebook⁡MyNotebook.nb

For both previous calling sequences, the file extension .nb can be omitted.

You can convert and save multiple notebooks.

> 

convert⁡MyNotebook.nb,Sample.nb,FromMmaNotebook

Alternatively, you can translate and display multiple notebooks without saving to disk.

> 

FromMmaNotebook⁡MyNotebook.nb,Sample.nb,display

You can also obtain the Maple XML representation of the Mathematica notebook using either of the following commands.

> 

convert⁡Sample.nb,FromMmaNotebook,XML

> 

FromMmaNotebook⁡Sample.nb,XML

See Also

convert/FromMma

MmaTranslator

MmaTranslator/exceptions

MmaTranslator[FromMma]

MmaTranslator[Mma]

MmaTranslator[MmaToMaple]