@@ -74,11 +74,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for medium positiv
7474 for ( i = 0 ; i < x . length ; i ++ ) {
7575 y = acothf ( x [ i ] ) ;
7676 e = f32 ( expected [ i ] ) ;
77- if ( isAlmostSameValue ( y , e , 4 ) ) {
77+ if ( isAlmostSameValue ( y , e , 0 ) ) {
7878 t . strictEqual ( y , e , 'x: ' + x [ i ] + '. E: ' + e + '.' ) ;
7979 } else {
8080 delta = abs ( y - e ) ;
81- tol = 4.0 * EPS * abs ( e ) ;
81+ tol = 2.3 * EPS * abs ( e ) ;
8282 t . ok ( delta <= tol , 'within tolerance. x: ' + x [ i ] + '. y: ' + y + '. E: ' + e + '. tol: ' + tol + '. Δ: ' + delta + '.' ) ;
8383 }
8484 }
@@ -100,11 +100,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for medium negativ
100100 for ( i = 0 ; i < x . length ; i ++ ) {
101101 y = acothf ( x [ i ] ) ;
102102 e = f32 ( expected [ i ] ) ;
103- if ( isAlmostSameValue ( y , e , 4 ) ) {
103+ if ( isAlmostSameValue ( y , e , 0 ) ) {
104104 t . strictEqual ( y , e , 'x: ' + x [ i ] + '. E: ' + e + '.' ) ;
105105 } else {
106106 delta = abs ( y - e ) ;
107- tol = 4.0 * EPS * abs ( e ) ;
107+ tol = 2.3 * EPS * abs ( e ) ;
108108 t . ok ( delta <= tol , 'within tolerance. x: ' + x [ i ] + '. y: ' + y + '. E: ' + e + '. tol: ' + tol + '. Δ: ' + delta + '.' ) ;
109109 }
110110 }
@@ -126,11 +126,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for large positive
126126 for ( i = 0 ; i < x . length ; i ++ ) {
127127 y = acothf ( x [ i ] ) ;
128128 e = f32 ( expected [ i ] ) ;
129- if ( isAlmostSameValue ( y , e , 4 ) ) {
129+ if ( isAlmostSameValue ( y , e , 0 ) ) {
130130 t . strictEqual ( y , e , 'x: ' + x [ i ] + '. E: ' + e + '.' ) ;
131131 } else {
132132 delta = abs ( y - e ) ;
133- tol = 4.0 * EPS * abs ( e ) ;
133+ tol = 2.3 * EPS * abs ( e ) ;
134134 t . ok ( delta <= tol , 'within tolerance. x: ' + x [ i ] + '. y: ' + y + '. E: ' + e + '. tol: ' + tol + '. Δ: ' + delta + '.' ) ;
135135 }
136136 }
@@ -152,11 +152,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for large negative
152152 for ( i = 0 ; i < x . length ; i ++ ) {
153153 y = acothf ( x [ i ] ) ;
154154 e = f32 ( expected [ i ] ) ;
155- if ( isAlmostSameValue ( y , e , 4 ) ) {
155+ if ( isAlmostSameValue ( y , e , 0 ) ) {
156156 t . strictEqual ( y , e , 'x: ' + x [ i ] + '. E: ' + e + '.' ) ;
157157 } else {
158158 delta = abs ( y - e ) ;
159- tol = 4.0 * EPS * abs ( e ) ;
159+ tol = 2.3 * EPS * abs ( e ) ;
160160 t . ok ( delta <= tol , 'within tolerance. x: ' + x [ i ] + '. y: ' + y + '. E: ' + e + '. tol: ' + tol + '. Δ: ' + delta + '.' ) ;
161161 }
162162 }
@@ -178,11 +178,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for larger positiv
178178 for ( i = 0 ; i < x . length ; i ++ ) {
179179 y = acothf ( x [ i ] ) ;
180180 e = f32 ( expected [ i ] ) ;
181- if ( isAlmostSameValue ( y , e , 4 ) ) {
181+ if ( isAlmostSameValue ( y , e , 0 ) ) {
182182 t . strictEqual ( y , e , 'x: ' + x [ i ] + '. E: ' + e + '.' ) ;
183183 } else {
184184 delta = abs ( y - e ) ;
185- tol = 4.0 * EPS * abs ( e ) ;
185+ tol = 2.3 * EPS * abs ( e ) ;
186186 t . ok ( delta <= tol , 'within tolerance. x: ' + x [ i ] + '. y: ' + y + '. E: ' + e + '. tol: ' + tol + '. Δ: ' + delta + '.' ) ;
187187 }
188188 }
@@ -204,11 +204,11 @@ tape( 'the function computes the inverse hyperbolic cotangent for larger negativ
204204 for ( i = 0 ; i < x . length ; i ++ ) {
205205 y = acothf ( x [ i ] ) ;
206206 e = f32 ( expected [ i ] ) ;
207- if ( isAlmostSameValue ( y , e , 4 ) ) {
207+ if ( isAlmostSameValue ( y , e , 0 ) ) {
208208 t . strictEqual ( y , e , 'x: ' + x [ i ] + '. E: ' + e + '.' ) ;
209209 } else {
210210 delta = abs ( y - e ) ;
211- tol = 4.0 * EPS * abs ( e ) ;
211+ tol = 2.3 * EPS * abs ( e ) ;
212212 t . ok ( delta <= tol , 'within tolerance. x: ' + x [ i ] + '. y: ' + y + '. E: ' + e + '. tol: ' + tol + '. Δ: ' + delta + '.' ) ;
213213 }
214214 }
@@ -230,7 +230,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for huge positive
230230 for ( i = 0 ; i < x . length ; i ++ ) {
231231 y = acothf ( x [ i ] ) ;
232232 e = f32 ( expected [ i ] ) ;
233- if ( isAlmostSameValue ( y , e , 4 ) ) {
233+ if ( isAlmostSameValue ( y , e , 0 ) ) {
234234 t . strictEqual ( y , e , 'x: ' + x [ i ] + '. E: ' + e + '.' ) ;
235235 } else {
236236 delta = abs ( y - e ) ;
@@ -256,7 +256,7 @@ tape( 'the function computes the inverse hyperbolic cotangent for huge negative
256256 for ( i = 0 ; i < x . length ; i ++ ) {
257257 y = acothf ( x [ i ] ) ;
258258 e = f32 ( expected [ i ] ) ;
259- if ( isAlmostSameValue ( y , e , 4 ) ) {
259+ if ( isAlmostSameValue ( y , e , 0 ) ) {
260260 t . strictEqual ( y , e , 'x: ' + x [ i ] + '. E: ' + e + '.' ) ;
261261 } else {
262262 delta = abs ( y - e ) ;
0 commit comments