evaluate fractions with exponents