Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
this is a bit of a cheat, but if the problem is to produce the mathML that corresponds to a particular mathematical expression, why not approach the problem via


here are some human readable thoughts on stage 1 transform (humanreadablemath->mathML) and the stage 2 transform (latex->mathML).


the first step is to take create your latex from your original mathematical input.

you can create .tex files from 'understandable' mathematical expressions via a perl file, which can be found at

this will enable full transform from the text $input:
integral from 0 to infinity of e ^ (-x^2/2)dx = sqrt(pi over 2)
to latex file test.tex


now you just need to push this through some sort of latex->mathML converter, ie stage 2. are there some?

apparently yes:

one such can be found at: . ermmm, i have not actually used the above - but apparently 'several' people are working on this, so 'one hopes' there is a reasonable chance of an adequate solution.

if not, you will still have all of the tex tools to play with creating gifs etc from your resultant tex file. of course, there are demerits to this chaining, but hey, this problem is imho big & nasty...

best wishes -

-- in the world of the mules there are no rules --

In reply to Re: XML Strategy For Computer Algebra by wufnik
in thread XML Strategy For Computer Algebra by Zaxo

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2023-06-04 11:10 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (20 votes). Check out past polls.