The 2.5 release added complex math support including BEMAS / PEDMAS and functions.
This nice thing is the bot will show its work, so it can help you with your homework.
The math support is defined in the Calculator Self script.