Lines Matching full:isnan
76 if math.isnan(a):
77 if math.isnan(b):
405 self.assertTrue(math.isnan(phase(z)))
418 self.assertTrue(math.isnan(abs(complex(NAN, -2.3))))
419 isnan(abs(complex(NAN, -0.0))))
420 self.assertTrue(math.isnan(abs(complex(NAN, 0.0))))
421 self.assertTrue(math.isnan(abs(complex(NAN, 2.3))))
424 self.assertTrue(math.isnan(abs(complex(-2.3, NAN))))
425 self.assertTrue(math.isnan(abs(complex(-0.0, NAN))))
426 self.assertTrue(math.isnan(abs(complex(0.0, NAN))))
427 self.assertTrue(math.isnan(abs(complex(2.3, NAN))))
429 self.assertTrue(math.isnan(abs(complex(NAN, NAN))))
448 self.assertFalse(cmath.isnan(1))
449 self.assertFalse(cmath.isnan(1j))
450 self.assertFalse(cmath.isnan(INF))
451 self.assertTrue(cmath.isnan(NAN))
452 self.assertTrue(cmath.isnan(complex(NAN, 0)))
453 self.assertTrue(cmath.isnan(complex(0, NAN)))
454 self.assertTrue(cmath.isnan(complex(NAN, NAN)))
455 self.assertTrue(cmath.isnan(complex(NAN, INF)))
456 self.assertTrue(cmath.isnan(complex(INF, NAN)))