Lines Matching refs:INF
14 INF = float('inf') variable
151 self.assertRaises(ValueError, math.acos, INF)
161 self.assertEqual(math.acosh(INF), INF)
170 self.assertRaises(ValueError, math.asin, INF)
179 self.assertEqual(math.asinh(INF), INF)
188 self.ftest('atan(inf)', math.atan(INF), math.pi/2)
199 self.assertRaises(ValueError, math.atanh, INF)
217 self.assertEqual(math.atan2(0., INF), 0.)
225 self.assertEqual(math.atan2(-0., INF), -0.)
228 self.ftest('atan2(inf, -inf)', math.atan2(INF, NINF), math.pi*3/4)
229 self.ftest('atan2(inf, -2.3)', math.atan2(INF, -2.3), math.pi/2)
230 self.ftest('atan2(inf, -0.)', math.atan2(INF, -0.0), math.pi/2)
231 self.ftest('atan2(inf, 0.)', math.atan2(INF, 0.0), math.pi/2)
232 self.ftest('atan2(inf, 2.3)', math.atan2(INF, 2.3), math.pi/2)
233 self.ftest('atan2(inf, inf)', math.atan2(INF, INF), math.pi/4)
234 self.assertTrue(math.isnan(math.atan2(INF, NAN)))
241 self.ftest('atan2(-inf, inf)', math.atan2(NINF, INF), -math.pi/4)
247 self.assertEqual(math.atan2(2.3, INF), 0.)
253 self.assertEqual(math.atan2(-2.3, INF), -0.)
261 self.assertTrue(math.isnan(math.atan2(NAN, INF)))
276 self.assertEqual(math.ceil(INF), INF)
305 self.assertEqual(math.copysign(INF, 0.), INF)
306 self.assertEqual(math.copysign(INF, -0.), NINF)
307 self.assertEqual(math.copysign(NINF, 0.), INF)
310 self.assertEqual(math.copysign(1., INF), 1.)
312 self.assertEqual(math.copysign(INF, INF), INF)
313 self.assertEqual(math.copysign(INF, NINF), NINF)
314 self.assertEqual(math.copysign(NINF, INF), INF)
317 self.assertTrue(math.isnan(math.copysign(NAN, INF)))
323 self.assertTrue(math.isinf(math.copysign(INF, NAN)))
334 self.assertTrue(math.isnan(math.cos(INF)))
337 self.assertRaises(ValueError, math.cos, INF)
345 self.assertEqual(math.cosh(INF), INF)
346 self.assertEqual(math.cosh(NINF), INF)
360 self.assertEqual(math.exp(INF), INF)
400 self.assertEqual(math.ceil(INF), INF)
429 self.assertRaises(ValueError, math.fmod, INF, 1.)
431 self.assertRaises(ValueError, math.fmod, INF, 0.)
432 self.assertEqual(math.fmod(3.0, INF), 3.0)
433 self.assertEqual(math.fmod(-3.0, INF), -3.0)
453 self.assertEqual(math.frexp(INF)[0], INF)
552 self.assertEqual(math.hypot(NAN, INF), INF)
553 self.assertEqual(math.hypot(INF, NAN), INF)
554 self.assertEqual(math.hypot(NAN, NINF), INF)
555 self.assertEqual(math.hypot(NINF, NAN), INF)
569 self.assertEqual(math.ldexp(INF, 30), INF)
575 self.assertEqual(math.ldexp(INF, -n), INF)
587 self.assertEqual(math.ldexp(INF, n), INF)
599 self.assertEqual(math.log(INF), INF)
612 self.assertEqual(math.log1p(INF), INF)
624 self.assertEqual(math.log(INF), INF)
643 self.assertEqual(math.modf(INF), (0.0, INF))
656 self.assertEqual(math.pow(INF, 1), INF)
658 self.assertEqual((math.pow(1, INF)), 1.)
666 self.assertEqual(math.pow(0., INF), 0.)
679 self.assertEqual(math.pow(INF, INF), INF)
680 self.assertEqual(math.pow(INF, 3.), INF)
681 self.assertEqual(math.pow(INF, 2.3), INF)
682 self.assertEqual(math.pow(INF, 2.), INF)
683 self.assertEqual(math.pow(INF, 0.), 1.)
684 self.assertEqual(math.pow(INF, -0.), 1.)
685 self.assertEqual(math.pow(INF, -2.), 0.)
686 self.assertEqual(math.pow(INF, -2.3), 0.)
687 self.assertEqual(math.pow(INF, -3.), 0.)
688 self.assertEqual(math.pow(INF, NINF), 0.)
689 self.assertTrue(math.isnan(math.pow(INF, NAN)))
692 self.assertEqual(math.pow(-0., INF), 0.)
705 self.assertEqual(math.pow(NINF, INF), INF)
707 self.assertEqual(math.pow(NINF, 2.3), INF)
708 self.assertEqual(math.pow(NINF, 2.), INF)
718 self.assertEqual(math.pow(-1., INF), 1.)
731 self.assertEqual(math.pow(1., INF), 1.)
758 self.assertEqual(math.pow(0.9, NINF), INF)
759 self.assertEqual(math.pow(0.1, NINF), INF)
760 self.assertEqual(math.pow(-0.1, NINF), INF)
761 self.assertEqual(math.pow(-0.9, NINF), INF)
766 self.assertEqual(math.pow(1.9, INF), INF)
767 self.assertEqual(math.pow(1.1, INF), INF)
768 self.assertEqual(math.pow(0.9, INF), 0.)
769 self.assertEqual(math.pow(0.1, INF), 0.)
770 self.assertEqual(math.pow(-0.1, INF), 0.)
771 self.assertEqual(math.pow(-0.9, INF), 0.)
772 self.assertEqual(math.pow(-1.1, INF), INF)
773 self.assertEqual(math.pow(-1.9, INF), INF)
811 self.assertTrue(math.isnan(math.sin(INF)))
814 self.assertRaises(ValueError, math.sin, INF)
823 self.assertEqual(math.sinh(INF), INF)
832 self.assertEqual(math.sqrt(INF), INF)
842 self.assertTrue(math.isnan(math.tan(INF)))
845 self.assertRaises(ValueError, math.tan, INF)
853 self.ftest('tanh(inf)', math.tanh(INF), 1)