Re: [Haskell-cafe] Input and output of mathematical expressions

2011-06-13 Thread Pedro Vasconcelos
On Thu, 9 Jun 2011 16:23:20 +0200 Jacek Generowicz jacek.generow...@cern.ch wrote: Greetings Cafe, What would you recommend as a Haskell-based means of interactively reading and writing mathematical formulae? As a toy example, what might I use to write a program which presents the

Re: [Haskell-cafe] Input and output of mathematical expressions

2011-06-13 Thread Jerzy Karczmarczuk
Pedro Vasconcelos comments: Regarding the rendering math formulas on web browsers: you might want to have a look at MathJax (http://www.mathjax.org/). You can use LaTeX or MathML and will work in most browsers (even if when they don't natively support MathML). Don't forget two other (which I

[Haskell-cafe] Input and output of mathematical expressions

2011-06-09 Thread Jacek Generowicz
Greetings Cafe, What would you recommend as a Haskell-based means of interactively reading and writing mathematical formulae? As a toy example, what might I use to write a program which presents the user with Please simplify the expression: \pi x^2 + 3\pi x^2 (Where the TeX-style

Re: [Haskell-cafe] Input and output of mathematical expressions

2011-06-09 Thread Chris Smith
Ae you looking to do this in a web application, or client-side? Since one of your requirements is to display a typeset equation, that makes a bit of difference. In a web-based setting, the best way to do that is probably MathML, whereas a GUI will be a bit harder. On Jun 9, 2011 8:24 AM, Jacek

Re: [Haskell-cafe] Input and output of mathematical expressions

2011-06-09 Thread Daniel Patterson
(I originally sent this reply from the wrong address, see below) On Jun 9, 2011, at 11:03 AM, Daniel Patterson wrote: Also if you are doing this for web, I haven't used it personally (yet), but http://www.mathjax.org/ looks really good... would allow you to actually just write it in LaTeX

Re: [Haskell-cafe] Input and output of mathematical expressions

2011-06-09 Thread John MacFarlane
There's also http://hackage.haskell.org/package/texmath which converts LaTeX to MathML, and even handles LaTeX macros. The problem is that MathML support in browsers is still spotty. http://hackage.haskell.org/packages/archive/texmath/0.5.0.1/doc/html/Text-TeXMath-Types.html contains types for

Re: [Haskell-cafe] Input and output of mathematical expressions

2011-06-09 Thread Jacek Generowicz
On 2011 Jun 9, at 16:59, Chris Smith wrote: Ae you looking to do this in a web application, or client-side? Since one of your requirements is to display a typeset equation, that makes a bit of difference. In a web-based setting, the best way to do that is probably MathML, whereas a GUI

Re: [Haskell-cafe] Input and output of mathematical expressions

2011-06-09 Thread Henning Thielemann
On Thu, 9 Jun 2011, Jacek Generowicz wrote: On 2011 Jun 9, at 16:59, Chris Smith wrote: Ae you looking to do this in a web application, or client-side? Since one of your requirements is to display a typeset equation, that makes a bit of difference. In a web-based setting, the best way to

Re: [Haskell-cafe] Input and output of mathematical expressions

2011-06-09 Thread Etienne Laurin
Henning Thielemann lemming at henning-thielemann.de writes: On Thu, 9 Jun 2011, Jacek Generowicz wrote: On 2011 Jun 9, at 16:59, Chris Smith wrote: Ae you looking to do this in a web application, or client-side? Since one of your requirements is to display a typeset equation, that makes a