Question

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.

Was it helpful?

Solution

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.

OTHER TIPS

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

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

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