reciprocal method

Fraction reciprocal()

Returns the multiplicative inverse of this fraction.

Implementation

Fraction reciprocal() => isNegative ? Fraction._(-b, -a) : Fraction._(b, a);