I'm trying to make an object move according to an equation with exponents. The code I tried using is similar to what is below:
'setLocation(getX()+1, (getX()+1)^2);'
When I compiled it and ran it, the object didn't move using the exponent. Is there a certain method or command I need to use before starting an equation?