Apply de Moivre's theorem for rational powers (#658)