@@ -85,37 +85,37 @@ tape( 'the function calculates the L2-norm of a vector', opts, function test( t
8585
8686 x = new Float64Array ( [ 1.0 , - 2.0 , - 4.0 , 5.0 , 0.0 , 3.0 ] ) ;
8787
88- z = dnrm2 ( x . length , x , 1 , 0 ) ;
88+ z = dnrm2 ( x . length , x , 1 ) ;
8989 t . strictEqual ( z , sqrt ( 55.0 ) , 'returns expected value' ) ;
9090
9191 x = new Float64Array ( [ - 4.0 ] ) ;
9292
93- z = dnrm2 ( x . length , x , 1 , 0 ) ;
93+ z = dnrm2 ( x . length , x , 1 ) ;
9494 t . strictEqual ( z , 4.0 , 'returns expected value' ) ;
9595
96- x = new Float64Array ( [ 1e150 , 1e150 , 1e150 , 1e150 ] ) ;
96+ x = new Float64Array ( [ 1.0e150 , 1.0e150 , 1.0e150 , 1.0e150 ] ) ;
9797
98- z = dnrm2 ( x . length , x , 1 , 0 ) ;
98+ z = dnrm2 ( x . length , x , 1 ) ;
9999 t . strictEqual ( z , 2.0e+150 , 'returns expected value' ) ;
100100
101- x = new Float64Array ( [ 1e -155, 1e -155, 1e -155, 1e -155 ] ) ;
101+ x = new Float64Array ( [ 1.0e -155, 1.0e -155, 1.0e -155, 1.0e -155 ] ) ;
102102
103- z = dnrm2 ( x . length , x , 1 , 0 ) ;
103+ z = dnrm2 ( x . length , x , 1 ) ;
104104 t . strictEqual ( z , 2.0e-155 , 'returns expected value' ) ;
105105
106- x = new Float64Array ( [ 1e150 , 1e50 , 1e150 , 1e50 ] ) ;
106+ x = new Float64Array ( [ 1.0e150 , 1.0e50 , 1.0e150 , 1.0e50 ] ) ;
107107
108- z = dnrm2 ( x . length , x , 1 , 0 ) ;
108+ z = dnrm2 ( x . length , x , 1 ) ;
109109 isApprox ( t , z , 1.41421e150 , 2.0 ) ;
110110
111- x = new Float64Array ( [ 1e -155, 1e50 , 1e -155, 1e50 ] ) ;
111+ x = new Float64Array ( [ 1.0e -155, 1.0e50 , 1.0e -155, 1.0e50 ] ) ;
112112
113- z = dnrm2 ( x . length , x , 1 , 0 ) ;
113+ z = dnrm2 ( x . length , x , 1 ) ;
114114 isApprox ( t , z , 1.41421e50 , 2.0 ) ;
115115
116116 x = new Float64Array ( [ 1.4e-154 , 1.5e-154 , 1.4e-154 , 0.0 ] ) ;
117117
118- z = dnrm2 ( x . length , x , 1 , 0 ) ;
118+ z = dnrm2 ( x . length , x , 1 ) ;
119119 isApprox ( t , z , 2.483948e-154 , 2.0 ) ;
120120
121121 t . end ( ) ;
0 commit comments