@@ -758,21 +758,21 @@ def testAtan2(self):
758
758
def testCos (self ):
759
759
self .assertRaises (TypeError , math .cos )
760
760
self .ftest ('cos(-pi/2)' , math .cos (- math .pi / 2 ), 0 , abs_tol = ulp (1 ))
761
- # self.ftest('cos(0)', math.cos(0), 1)
762
- # self.ftest('cos(pi/2)', math.cos(math.pi/2), 0, abs_tol=ulp(1))
763
- # self.ftest('cos(pi)', math.cos(math.pi), -1)
764
- # try:
765
- # self.assertTrue(math.isnan(math.cos(INF)))
766
- # self.assertTrue(math.isnan(math.cos(NINF)))
767
- # except ValueError:
768
- # self.assertRaises(ValueError, math.cos, INF)
769
- # self.assertRaises(ValueError, math.cos, NINF)
770
- # self.assertTrue(math.isnan(math.cos(NAN)))
771
- #
772
- # #test of specializations
773
- # self.ftest('cos(BIG_INT)', math.cos(BIG_INT), 0.4145587418469303)
774
- # self.ftest('cos(MyFloat())', math.cos(MyFloat()), 0.8253356149096783)
775
- # self.assertRaises(TypeError, math.cos, 'ahoj')
761
+ self .ftest ('cos(0)' , math .cos (0 ), 1 )
762
+ self .ftest ('cos(pi/2)' , math .cos (math .pi / 2 ), 0 , abs_tol = ulp (1 ))
763
+ self .ftest ('cos(pi)' , math .cos (math .pi ), - 1 )
764
+ try :
765
+ self .assertTrue (math .isnan (math .cos (INF )))
766
+ self .assertTrue (math .isnan (math .cos (NINF )))
767
+ except ValueError :
768
+ self .assertRaises (ValueError , math .cos , INF )
769
+ self .assertRaises (ValueError , math .cos , NINF )
770
+ self .assertTrue (math .isnan (math .cos (NAN )))
771
+
772
+ #test of specializations
773
+ self .ftest ('cos(BIG_INT)' , math .cos (BIG_INT ), 0.4145587418469303 )
774
+ self .ftest ('cos(MyFloat())' , math .cos (MyFloat ()), 0.8253356149096783 )
775
+ self .assertRaises (TypeError , math .cos , 'ahoj' )
776
776
777
777
def testCosh (self ):
778
778
self .assertRaises (TypeError , math .cosh )
0 commit comments