The function could be written like this too: Coin.rotateY = pow(time, 2) * 50; From MEL command reference: "(pow) raises the first argument to the power of the second argument and returns the result."