Raises arg to a power if possible (negative number could not be raised to a fractional power). Throws IllegalArgumentException if not possible.