@@ -69,7 +69,7 @@ tape( 'the function accurately computes the natural exponential function for neg
69
69
for ( i = 0 ; i < x . length ; i ++ ) {
70
70
v = expf ( x [ i ] ) ;
71
71
delta = absf ( v - expected [ i ] ) ;
72
- tol = EPS * absf ( expected [ i ] ) ;
72
+ tol = EPS * 50 * absf ( expected [ i ] ) ;
73
73
t . ok ( delta <= tol , 'within tolerance. x: ' + x [ i ] + '. Value: ' + v + '. Expected: ' + expected [ i ] + '. Tolerance: ' + tol + '.' ) ;
74
74
}
75
75
t . end ( ) ;
@@ -89,7 +89,7 @@ tape( 'the function accurately computes the natural exponential function for pos
89
89
for ( i = 0 ; i < x . length ; i ++ ) {
90
90
v = expf ( x [ i ] ) ;
91
91
delta = absf ( v - expected [ i ] ) ;
92
- tol = EPS * absf ( expected [ i ] ) ;
92
+ tol = EPS * 50 * absf ( expected [ i ] ) ;
93
93
t . ok ( delta <= tol , 'within tolerance. x: ' + x [ i ] + '. Value: ' + v + '. Expected: ' + expected [ i ] + '. Tolerance: ' + tol + '.' ) ;
94
94
}
95
95
t . end ( ) ;
@@ -109,7 +109,7 @@ tape( 'the function accurately computes the natural exponential function for neg
109
109
for ( i = 0 ; i < x . length ; i ++ ) {
110
110
v = expf ( x [ i ] ) ;
111
111
delta = absf ( v - expected [ i ] ) ;
112
- tol = EPS * absf ( expected [ i ] ) ;
112
+ tol = EPS * 50 * absf ( expected [ i ] ) ;
113
113
t . ok ( delta <= tol , 'within tolerance. x: ' + x [ i ] + '. Value: ' + v + '. Expected: ' + expected [ i ] + '. Tolerance: ' + tol + '.' ) ;
114
114
}
115
115
t . end ( ) ;
@@ -129,7 +129,7 @@ tape( 'the function accurately computes the natural exponential function for pos
129
129
for ( i = 0 ; i < x . length ; i ++ ) {
130
130
v = expf ( x [ i ] ) ;
131
131
delta = absf ( v - expected [ i ] ) ;
132
- tol = EPS * absf ( expected [ i ] ) ;
132
+ tol = EPS * 50 * absf ( expected [ i ] ) ;
133
133
t . ok ( delta <= tol , 'within tolerance. x: ' + x [ i ] + '. Value: ' + v + '. Expected: ' + expected [ i ] + '. Tolerance: ' + tol + '.' ) ;
134
134
}
135
135
t . end ( ) ;
@@ -149,7 +149,7 @@ tape( 'the function accurately computes the natural exponential function for ver
149
149
for ( i = 0 ; i < x . length ; i ++ ) {
150
150
v = expf ( x [ i ] ) ;
151
151
delta = absf ( v - expected [ i ] ) ;
152
- tol = EPS * absf ( expected [ i ] ) ;
152
+ tol = EPS * 50 * absf ( expected [ i ] ) ;
153
153
t . ok ( delta <= tol , 'within tolerance. x: ' + x [ i ] + '. Value: ' + v + '. Expected: ' + expected [ i ] + '. Tolerance: ' + tol + '.' ) ;
154
154
}
155
155
t . end ( ) ;
0 commit comments