Math actionscript for flash 8

Hello, does anyone know if there is a book or tutorials out or somewhere where I can get help with generating equations in flash. Most tutorials I see have used a lot of math functions such as math.sin, math.pow, etc… but only for the position of objects on a stage. However I want to display math problems and check the users input. Any suggestions?? Please let me know.

Sample Problems :
(x^2+5)

Thank You