# How do you generate mathematical formulas programmatically using a server side language [closed]

We would like to generate simple mathematical formulas on the fly (e.g. $\sin^2 \theta$). The above function seems to be a MathJaX representation. Most of the solutions depend on writing mathematical equations using MathML or Latex or jsMath or MathJaX. I am assuming MathJaX would be the right solution to use if you are planning write these equations right now and most of these solutions get embedded as javascript directly.

Is there a way to generate these equations on the server side using a language like Java assuming the application logic provides a mechanism to embed them in the HTML. What kind of solutions are available if we have to go down this path.

I am a complete novice on this subject, looking for inputs so that we choose the right solution.

-

## closed as off topic by Mariano Suárez-Alvarez♦, Aryabhata, Ross Millikan, Qiaochu YuanJan 7 '11 at 1:35

Questions on Mathematics Stack Exchange are expected to relate to math within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.

This is off-topic on this site, as this is not a math question. (Out of curiosity: did you look in the list of questions for other questions of a similar flavor before asking?) –  Mariano Suárez-Alvarez Jan 5 '11 at 4:31
I don't understand the question. What's wrong with any of the solutions you listed? Do you want to generate a single static image for the whole formula? There are solutions for that too — Wikipedia renders mathematical formulae that way. –  Zhen Lin Jan 5 '11 at 4:32
I would try to avoid generating static images, since I need to figure out a mechanism to store / host this information in my server which is additional maintenance for me. –  Jason Jan 5 '11 at 6:52