I have build a math engine in Flash that can parse a string of formulas, compile parantes, short expressions, constants, variables, functions etc. Not sure yet what its gonna be used for, but it was a challenge and enjoying to build it. Quite fast to be in Flash I think.

http://www.onemotion.com/temp/math.swf

kind regards
Tomas Eriksson