Skip to main content

MathML and Java


I've been doing some research for a mathematical Android related project I'd like to embark upon and I stumbled across for the first time MathML.



Does anyone know of any Java libraries which can do any (preferably all) of the following things?



  1. Parse MathML

  2. Output MathML by parsing standard mathematical notation

  3. Render MathML (particularly important)

  4. Do any other cool maths-ey things (like re-arrange equations in terms of different things)



Number 3 is probably the most important, and number 4 the least.



Thanks in advance.


Source: Tips4allCCNA FINAL EXAM

Comments

  1. I've used JEuclid for rendering MathML in my Symja project (Java symbolic math system - point 4 of your list).
    Maybe, that JEuclid is to slow (especially at startup) for rendering MathML on a mobile phone?

    Other alternatives for rendering math expressions with TeX:


    JMathTex
    SnuggleTeX
    JLaTeXMath


    and for re-arranging equations or as general Java math libraries:


    Mathrider (Yacas for Java)
    Jasymca - Symbolic Calculator for Mobile Devices
    Java Algebra System
    The Apache Commons Mathematics Library


    Calculator projects for Android:


    scientific-calculator-for-android (Apache license)
    Jasymca for Android (GNU public license)
    Arity calculator for android (Apache license)

    ReplyDelete
  2. JScience (jscience.org) looks like it has some experimental support for MathML being introduced.


    JScience MathML Java class
    hierarchy
    JScience MathML Java
    package classes


    I would like to say I am extremely impressed with the features the JScience author has chosen and proven able to support with his powerful Java library.

    It is a pretty amazing piece of craftsmanship. If you are doing any significant amount of sophisticated mathematics in your Java programs, or just want to create a utility to punt around with then you should take a look at this library. It might even give you some ideas for things you never thought about doing before because they were "too hard".

    There is an open source project named MathEclipse that might interest you too.

    ReplyDelete
  3. It depends on having a browser that will render MathML, of course.

    An alternative would be to try jsMath, a JavaScript library that uses TeX to render equations.

    ReplyDelete

Post a Comment

Popular posts from this blog

Why is this Javascript much *slower* than its jQuery equivalent?

I have a HTML list of about 500 items and a "filter" box above it. I started by using jQuery to filter the list when I typed a letter (timing code added later): $('#filter').keyup( function() { var jqStart = (new Date).getTime(); var search = $(this).val().toLowerCase(); var $list = $('ul.ablist > li'); $list.each( function() { if ( $(this).text().toLowerCase().indexOf(search) === -1 ) $(this).hide(); else $(this).show(); } ); console.log('Time: ' + ((new Date).getTime() - jqStart)); } ); However, there was a couple of seconds delay after typing each letter (particularly the first letter). So I thought it may be slightly quicker if I used plain Javascript (I read recently that jQuery's each function is particularly slow). Here's my JS equivalent: document.getElementById('filter').addEventListener( 'keyup', function () { var jsStart = (new Date).getTime()...

Is it possible to have IF statement in an Echo statement in PHP

Thanks in advance. I did look at the other questions/answers that were similar and didn't find exactly what I was looking for. I'm trying to do this, am I on the right path? echo " <div id='tabs-".$match."'> <textarea id='".$match."' name='".$match."'>". if ($COLUMN_NAME === $match) { echo $FIELD_WITH_COLUMN_NAME; } else { } ."</textarea> <script type='text/javascript'> CKEDITOR.replace( '".$match."' ); </script> </div>"; I am getting the following error message in the browser: Parse error: syntax error, unexpected T_IF Please let me know if this is the right way to go about nesting an IF statement inside an echo. Thank you.