in reply to Parsing Math Strings

You could just punt and pass things off to gnuplot.