You actually can use trig functions they just don’t appear in the toolbox. For example you could write
Both the sin function and PI need to begin with “Math dot”. You can read more about it here http://www.w3schools.com/jsref/jsref_sin.asp if you like.
Hope that helps!