English 中文(简体)
MathML and Java [closed]
原标题:

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

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.

最佳回答

I ve used JEuclid for rendering MathML in my Symja project (Java symbolic math system - point 4 of your list). JEuclid may be too slow (especially at startup) to render MathML on a mobile phone.

Other alternatives for rendering math expressions with TeX:

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

Calculator projects for Android:

问题回答

The W3C MathML Implementations page (http://www.w3.org/Math/Software/mathml_software_cat_editors.html) has a few that mention Java-based tools... that might be a good place to start looking.

Good luck.

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

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.

I have used this for your Point #3 above (rendering): http://jeuclid.sourceforge.net/

It does a pretty nifty job taking MathML and creating a JPG, PNG, etc. It will also display the equations in a GUI (and I m guessing you can look at the GUI code and incorporate that into your own project)

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.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签