Lines Matching refs:isnan
76 if math.isnan(a):
77 if math.isnan(b):
436 self.assertTrue(math.isnan(phase(z)))
449 self.assertTrue(math.isnan(abs(complex(NAN, -2.3))))
450 self.assertTrue(math.isnan(abs(complex(NAN, -0.0))))
451 self.assertTrue(math.isnan(abs(complex(NAN, 0.0))))
452 self.assertTrue(math.isnan(abs(complex(NAN, 2.3))))
455 self.assertTrue(math.isnan(abs(complex(-2.3, NAN))))
456 self.assertTrue(math.isnan(abs(complex(-0.0, NAN))))
457 self.assertTrue(math.isnan(abs(complex(0.0, NAN))))
458 self.assertTrue(math.isnan(abs(complex(2.3, NAN))))
460 self.assertTrue(math.isnan(abs(complex(NAN, NAN))))
479 self.assertFalse(cmath.isnan(1))
480 self.assertFalse(cmath.isnan(1j))
481 self.assertFalse(cmath.isnan(INF))
482 self.assertTrue(cmath.isnan(NAN))
483 self.assertTrue(cmath.isnan(complex(NAN, 0)))
484 self.assertTrue(cmath.isnan(complex(0, NAN)))
485 self.assertTrue(cmath.isnan(complex(NAN, NAN)))
486 self.assertTrue(cmath.isnan(complex(NAN, INF)))
487 self.assertTrue(cmath.isnan(complex(INF, NAN)))