Question

These are some sample algebraic equations

2x = 3
3x + 5 = 8
(y+1)/7 = (y-2)/3

Is there a java API which you can use to create such equations using a java program and return an equivalent HTML which in turn can be used for rendering purposes.

Was it helpful?

Solution

Do you need a client side or server side solution?

Client side:

  1. MathML
  2. MathJAX
  3. (old) jsMath

Server side:

The best typesetter for math is, hands down, LaTeX.

Here is a Java LaTeX interface: http://forge.scilab.org/index.php/p/jlatexmath/

OTHER TIPS

you really need to provide more info.

The first answer i have for use is: String,

 String equation ="2x = 3";

What extra formating do you need ? Otherwise again its very simple

<html><body>2x = 3</body>/<html>

Pretty sure you need something else but no idea what.

Besides that you can use JEP to hava Java parse fomulas http://www.singularsys.com/jep/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top