Calculate fraction to a power (a/b)ⁿ with automatic simplification. Supports positive and negative exponents.