예제 #1
0
 def quo(self, a, b):
     """Quotient of `a` and `b`, implies `__div__`. """
     return GMPYRational(gmpy_qdiv(GMPYRational(a), GMPYRational(b)))
예제 #2
0
 def div(self, a, b):
     """Division of `a` and `b`, implies `__div__`. """
     return GMPYRational(gmpy_qdiv(a, b)), self.zero
예제 #3
0
 def exquo(self, a, b):
     """Exact quotient of `a` and `b`, implies `__div__`.  """
     return GMPYRational(gmpy_qdiv(a, b))