No BSD License  

Highlights from
MathML Visualization

5.0

5.0 | 3 ratings Rate this file 8 Downloads (last 30 days) File Size: 4.3 KB File ID: #3049
image thumbnail

MathML Visualization

by Michael Kempf, Marko Reinhold

 

25 Feb 2003 (Updated 26 Feb 2003)

Types the MathML code of a mathematical expression and displays it in a webbrowser.

| Watch this File

File Information
Description

Content of "help MML":

MML types the MathML code of a term and displays it in a webbrowser.
   
MML displays the current content of the global variable ANS in the system's standard webbrowser.

MML(TERM) displays TERM in the system's standard webbrowser.
   
MML(OPTION) displays the current content of the global variable ANS according to the display parameter OPTION.

MML(TERM,OPTION) displays TERM according to the dispaly parameter OPTION.

TERM can either be a syntactically valid symbolic or non-symbolic MATLAB expression or a string containing a syntactically valid symbolic or non-symbolic MATLAB or Maple expression.

OPTION can contain a character string from the list of display otions below.'type': Types the MathML code of the given term in the command window, and displays the term in the system's standard webbrowser.

'nwb': No Web Browser. Types the MathML code of the given term in the command window. The term is not displayed in the webbrowser.

HOW MML WORKS:
The MML function passes the given term to the MATHML[EXPORT] function of the Maple Kernel. MATHML[EXPORT] returns a string containing the MathML sourcecode of the term. The MML function embeds the MathML code in HTML code and saves it in a file with the default name "mml_code.htm". This HTML-file is then opened with the system's standard webbrowser.Code is placed in the header of the HTML file to enable the browser for displaying MathML code with MathPlayer without being online. For this reason a namespace "m:" is added to each MathML tag.
   

Developed by:
   
Marko Reinhold and Michael Kempf
Hochschule Bremen, Germany 2003

for

Prof. Dr.-Ing. Joerg J. Buchholz
buchholz.hs-bremen.de
buchholz@hs-bremen.de

Acknowledgements
This submission has inspired the following:
Display symbolic expression in web browser.
MATLAB release MATLAB 6.5 (R13)
Other requirements 1.) Symbolic Math Toolbox 3.0.1 for MATLAB with Maple 8 Kernel or later. 2.) To display the expression in MS Internet Explorer install MATHPLAYER. Download MATHPLAYER (freeware) at http://www.dessci.com/webmath/mathplayer
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
01 Jul 2003 Marion Hagler

I use Design Sciences MathType equation editor in MS Word with MATHPLAYER to create and display XML/MathML files that contain supplemental notes for my students in electrical and computer engineering. I also use MATLAB. I was pleasantly surprised and very pleased to learn of this submission. I hope that MATLAB will increase its support of MathML so that it matches or exceeds that of Mathematica and Maple.

09 Jan 2004 Vassilios Lazaridis  
14 Jan 2009 Joao

Great !

17 Jan 2009 Joerg Buchholz

As of R2008b, Matlab uses a new symbolic engine (MuPAD instead of Maple). If you want to use mml with >R2008b you have to substitute the following line in mml.m:

MATHML_SOURCECODE=maple('MathML[Export]', char(arguments.input_term));

by the line:

MATHML_SOURCECODE = char (feval (symengine, 'generate::MathML', arguments.input_term));

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
visualization Michael Kempf, Marko Reinhold 22 Oct 2008 06:57:10
mathml Michael Kempf, Marko Reinhold 22 Oct 2008 06:57:10
mml Michael Kempf, Marko Reinhold 22 Oct 2008 06:57:10
internet Michael Kempf, Marko Reinhold 22 Oct 2008 06:57:11
explorer Michael Kempf, Marko Reinhold 22 Oct 2008 06:57:11
mathplayer Michael Kempf, Marko Reinhold 22 Oct 2008 06:57:11
code Michael Kempf, Marko Reinhold 22 Oct 2008 06:57:11

Contact us at files@mathworks.com