Lines Matching refs:_normalize
62 def __new__(cls, numerator=0, denominator=None, *, _normalize=True): argument
157 if _normalize:
457 return Fraction(na * db + da * nb, da * db, _normalize=False)
462 return Fraction(t, s * db, _normalize=False)
463 return Fraction(t // g2, s * (db // g2), _normalize=False)
473 return Fraction(na * db - da * nb, da * db, _normalize=False)
478 return Fraction(t, s * db, _normalize=False)
479 return Fraction(t // g2, s * (db // g2), _normalize=False)
495 return Fraction(na * nb, db * da, _normalize=False)
515 return Fraction(n, d, _normalize=False)
554 _normalize=False)
558 _normalize=False)
562 _normalize=False)
586 return Fraction(a._numerator, a._denominator, _normalize=False)
590 return Fraction(-a._numerator, a._denominator, _normalize=False)
594 return Fraction(abs(a._numerator), a._denominator, _normalize=False)