(self, other)
| 156 | return self.__class__(other.numerator * self.numerator, |
| 157 | other.denominator * self.denominator) |
| 158 | def __truediv__(self, other): |
| 159 | if isinstance(other, F): |
| 160 | return NotImplemented |
| 161 | return self.__class__(self.numerator * other.denominator, |
| 162 | self.denominator * other.numerator) |
| 163 | def __rtruediv__(self, other): |
| 164 | return self.__class__(other.numerator * self.denominator, |
| 165 | other.denominator * self.numerator) |