Beispiel #1
0
 def div(self, other):
     rr, ir = rcomplex.c_div(self.as_tuple(), other.as_tuple())
     return W_ComplexObject(rr, ir)
Beispiel #2
0
def test_div():
    c.c_div((2.0, 3.0), (float("nan"), 0.0)) == (float("nan"), float("nan"))
Beispiel #3
0
 def div(self, other):
     rr, ir = rcomplex.c_div(self.as_tuple(), other.as_tuple())
     return W_ComplexObject(rr, ir)
Beispiel #4
0
def test_div():
    c.c_div((2., 3.), (float('nan'), 0.)) == (float('nan'), float('nan'))