Returns this to the power of exponent.
this
exponent
Returns one if the exponent equals 0.
0
The exponent must otherwise be positive.
Rational pow(int exponent) => Rational(numerator.pow(exponent), denominator.pow(exponent));