Lets say instead of sin(x) I wanted to have a function square(x) where the function "square" would be the equivalent of x=y^2. Thus typing in a = square(2) would result in a value of 4 for "a".
If no one knows how to do this maybe I will fill out an enhancement request for it. I opened up a ticket with PTC, but wanted to see if anyone else had a cleaver idea here.