@@ -82,13 +82,13 @@ tape( 'the function evaluates the logitf of `x` for the interval `(0,0.25]`', fu
8282	expected  =  small . expected ; 
8383	x  =  small . x ; 
8484	for  (  i  =  0 ;  i  <  x . length ;  i ++  )  { 
85- 		y  =  logitf (  x [ i ]  ) ; 
86- 		if  (  y  ===  expected [ i ]  )  { 
87- 			t . equal (  y ,  expected [ i ] ,  'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ]  ) ; 
85+ 		y  =  logitf (  x [   i   ]  ) ; 
86+ 		if  (  y  ===  expected [   i   ]  )  { 
87+ 			t . equal (  y ,  expected [   i   ] ,  'x: ' + x [   i   ] + ', y: ' + y + ', expected: ' + expected [   i   ]  ) ; 
8888		}  else  { 
89- 			delta  =  absf (  y  -  expected [ i ]  ) ; 
90- 			tol  =  EPS  *  absf (  expected [ i ]  ) ; 
91- 			t . ok (  delta  <=  tol ,  'within tolerance. x: ' + x [ i ] + '. v: ' + y + '. E: ' + expected [ i ] + ' Δ: ' + delta + '. tol: ' + tol  ) ; 
89+ 			delta  =  absf (  y  -  expected [   i   ]  ) ; 
90+ 			tol  =  EPS  *  absf (  expected [   i   ]  ) ; 
91+ 			t . ok (  delta  <=  tol ,  'within tolerance. x: ' + x [   i   ] + '. v: ' + y + '. E: ' + expected [   i   ] + ' Δ: ' + delta + '. tol: ' + tol  ) ; 
9292		} 
9393	} 
9494	t . end ( ) ; 
@@ -105,13 +105,13 @@ tape( 'the function evaluates the logitf of `x` for the interval `[0.25,0.49]`',
105105	expected  =  mediumBelow . expected ; 
106106	x  =  mediumBelow . x ; 
107107	for  (  i  =  0 ;  i  <  x . length ;  i ++  )  { 
108- 		y  =  logitf (  x [ i ]  ) ; 
109- 		if  (  y  ===  expected [ i ]  )  { 
110- 			t . equal (  y ,  expected [ i ] ,  'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ]  ) ; 
108+ 		y  =  logitf (  x [   i   ]  ) ; 
109+ 		if  (  y  ===  expected [   i   ]  )  { 
110+ 			t . equal (  y ,  expected [   i   ] ,  'x: ' + x [   i   ] + ', y: ' + y + ', expected: ' + expected [   i   ]  ) ; 
111111		}  else  { 
112- 			delta  =  absf (  y  -  expected [ i ]  ) ; 
113- 			tol  =  EPS  *  15  *  absf (  expected [ i ]  ) ; 
114- 			t . ok (  delta  <=  tol ,  'within tolerance. x: ' + x [ i ] + '. v: ' + y + '. E: ' + expected [ i ] + ' Δ: ' + delta + '. tol: ' + tol  ) ; 
112+ 			delta  =  absf (  y  -  expected [   i   ]  ) ; 
113+ 			tol  =  EPS  *  15  *  absf (  expected [   i   ]  ) ; 
114+ 			t . ok (  delta  <=  tol ,  'within tolerance. x: ' + x [   i   ] + '. v: ' + y + '. E: ' + expected [   i   ] + ' Δ: ' + delta + '. tol: ' + tol  ) ; 
115115		} 
116116	} 
117117	t . end ( ) ; 
@@ -128,13 +128,13 @@ tape( 'the function evaluates the logitf of `x` for the interval `[0.5,0.75]`',
128128	expected  =  mediumAbove . expected ; 
129129	x  =  mediumAbove . x ; 
130130	for  (  i  =  0 ;  i  <  x . length ;  i ++  )  { 
131- 		y  =  logitf (  x [ i ]  ) ; 
132- 		if  (  y  ===  expected [ i ]  )  { 
133- 			t . equal (  y ,  expected [ i ] ,  'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ]  ) ; 
131+ 		y  =  logitf (  x [   i   ]  ) ; 
132+ 		if  (  y  ===  expected [   i   ]  )  { 
133+ 			t . equal (  y ,  expected [   i   ] ,  'x: ' + x [   i   ] + ', y: ' + y + ', expected: ' + expected [   i   ]  ) ; 
134134		}  else  { 
135- 			delta  =  absf (  y  -  expected [ i ]  ) ; 
136- 			tol  =  EPS  *  15  *  absf (  expected [ i ]  ) ; 
137- 			t . ok (  delta  <=  tol ,  'within tolerance. x: ' + x [ i ] + '. v: ' + y + '. E: ' + expected [ i ] + ' Δ: ' + delta + '. tol: ' + tol  ) ; 
135+ 			delta  =  absf (  y  -  expected [   i   ]  ) ; 
136+ 			tol  =  EPS  *  15  *  absf (  expected [   i   ]  ) ; 
137+ 			t . ok (  delta  <=  tol ,  'within tolerance. x: ' + x [   i   ] + '. v: ' + y + '. E: ' + expected [   i   ] + ' Δ: ' + delta + '. tol: ' + tol  ) ; 
138138		} 
139139	} 
140140	t . end ( ) ; 
@@ -151,13 +151,13 @@ tape( 'the function evaluates the logitf of `x` for the interval `[0.75,1)`', fu
151151	expected  =  large . expected ; 
152152	x  =  large . x ; 
153153	for  (  i  =  0 ;  i  <  x . length ;  i ++  )  { 
154- 		y  =  logitf (  x [ i ]  ) ; 
155- 		if  (  y  ===  expected [ i ]  )  { 
156- 			t . equal (  y ,  expected [ i ] ,  'x: ' + x [ i ] + ', y: ' + y + ', expected: ' + expected [ i ]  ) ; 
154+ 		y  =  logitf (  x [   i   ]  ) ; 
155+ 		if  (  y  ===  expected [   i   ]  )  { 
156+ 			t . equal (  y ,  expected [   i   ] ,  'x: ' + x [   i   ] + ', y: ' + y + ', expected: ' + expected [   i   ]  ) ; 
157157		}  else  { 
158- 			delta  =  absf (  y  -  expected [ i ]  ) ; 
159- 			tol  =  EPS  *  absf (  expected [ i ]  ) ; 
160- 			t . ok (  delta  <=  tol ,  'within tolerance. x: ' + x [ i ] + '. v: ' + y + '. E: ' + expected [ i ] + ' Δ: ' + delta + '. tol: ' + tol  ) ; 
158+ 			delta  =  absf (  y  -  expected [   i   ]  ) ; 
159+ 			tol  =  EPS  *  absf (  expected [   i   ]  ) ; 
160+ 			t . ok (  delta  <=  tol ,  'within tolerance. x: ' + x [   i   ] + '. v: ' + y + '. E: ' + expected [   i   ] + ' Δ: ' + delta + '. tol: ' + tol  ) ; 
161161		} 
162162	} 
163163	t . end ( ) ; 
0 commit comments