Well, this can be done. Perhaps with the EVAL() function.
Here is a link that might help. Look down the page a little and you will see where they are testing with 2*2*pi or something similar. In that code sample you will see how to use it.
The problem with EVAL() is that it passes what could be inputted by a user. This could cause the EVAL to pass a virus or a tricky program. So, if you are having someone type in the math function you have to be very careful with the eval function. (And, basically block viruses or code inputs.)
Hope that helps...