Keep it simple.
public static double fourthroot(double x) { return sqrt(sqrt(x)); }