Converting between radical form and exponent form