views:

99

answers:

3

Is it possible to take something like x^2+5 and have it generate this: http://imgur.com/Muq2X.gif

I'll be using Python so anything based in Python would work, but I'm open to other solutions such as latex output.

+2  A: 

You might take a look at this LaTeX module for Python: http://www.pytex.org/

Wayne Werner
+3  A: 

Sympy can output LaTeX code and MathML, from there you can create images or other forms of display, depending on what exactly you need. You'll find some methods for that in this old StackOverflow question.

In theory, MathML would be ideal to display equations in a browser, but not all browsers support MathML.

Fabian
A: 

May be you need SVGMath, it is pure python and converts MathML expressions to SVG.

Anurag Uniyal