Da java.lang.Math immer importiert sein sollte brauchst du pow() nur aufzurufen
static double pow(double a, double b)
Returns the value of the first argument raised to the power of the second argument.
https://java.sun.com/j2se/1.5.0/docs/api/java/lang/Math.html
http://www.coder-suche.de/search.jsp?query=java+pow