@@ -71,11 +71,15 @@ tape( 'the function computes the cotangent of an angle measured in degrees (nega
7171
7272	for  (  i  =  0 ;  i  <  x . length ;  i ++  )  { 
7373		y  =  cotd (  x [ i ]  ) ; 
74+ 		if  (  expected [  i  ]  ===  null  )  { 
75+ 			t . equal (  y ,  PINF ,  'x: ' + x [ i ] + '. E: ' + expected [ i ]  ) ; 
76+ 			continue ; 
77+ 		} 
7478		if  (  y  ===  expected [  i  ]  )  { 
7579			t . equal (  y ,  expected [  i  ] ,  'x: ' + x [ i ] + '. E: ' + expected [ i ]  ) ; 
7680		}  else  { 
7781			delta  =  abs (  y  -  expected [ i ]  ) ; 
78- 			tol  =  1.4  *  EPS  *  abs (  expected [ i ]  ) ; 
82+ 			tol  =  2.0  *  EPS  *  abs (  expected [ i ]  ) ; 
7983			t . ok (  delta  <=  tol ,  'within tolerance. x: ' + x [ i ] + '. y: ' + y + '. E: ' + expected [ i ] + '. tol: ' + tol + '. Δ: ' + delta + '.'  ) ; 
8084		} 
8185	} 
@@ -95,11 +99,15 @@ tape( 'the function computes the cotangent of an angle measured in degrees (posi
9599
96100	for  (  i  =  0 ;  i  <  x . length ;  i ++  )  { 
97101		y  =  cotd (  x [ i ]  ) ; 
102+ 		if  (  expected [  i  ]  ===  null  )  { 
103+ 			t . equal (  y ,  PINF ,  'x: ' + x [ i ] + '. E: ' + expected [ i ]  ) ; 
104+ 			continue ; 
105+ 		} 
98106		if  (  y  ===  expected [  i  ]  )  { 
99107			t . equal (  y ,  expected [  i  ] ,  'x: ' + x [ i ] + '. E: ' + expected [ i ]  ) ; 
100108		}  else  { 
101109			delta  =  abs (  y  -  expected [ i ]  ) ; 
102- 			tol  =  1.4  *  EPS  *  abs (  expected [ i ]  ) ; 
110+ 			tol  =  2.0  *  EPS  *  abs (  expected [ i ]  ) ; 
103111			t . ok (  delta  <=  tol ,  'within tolerance. x: ' + x [ i ] + '. y: ' + y + '. E: ' + expected [ i ] + '. tol: ' + tol + '. Δ: ' + delta + '.'  ) ; 
104112		} 
105113	} 
0 commit comments