I used Math.PI() and Math.pow for the equations. they are use in an example. Maybe you will have better luck with those.