File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed
lib/node_modules/@stdlib/constants/float32/eulergamma Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 2525* var val = FLOAT32_GAMMA;
2626* // returns 0.5772156715393066
2727*/
28- declare const FLOAT32_GAMMA : number ;
28+ declare const FLOAT32_EULERGAMMA : number ;
2929
3030
3131// EXPORTS //
3232
33- export = FLOAT32_GAMMA ;
33+ export = FLOAT32_EULERGAMMA ;
Original file line number Diff line number Diff line change 1616* limitations under the License.
1717*/
1818
19- import FLOAT32_GAMMA = require( './index' ) ;
19+ import FLOAT32_EULERGAMMA = require( './index' ) ;
2020
2121
2222// TESTS //
2323
2424// The export is a number...
2525{
2626 // eslint-disable-next-line @typescript-eslint/no-unused-expressions
27- FLOAT32_GAMMA ; // $ExpectType number
27+ FLOAT32_EULERGAMMA ; // $ExpectType number
2828}
Original file line number Diff line number Diff line change 1818
1919'use strict' ;
2020
21- var FLOAT32_GAMMA = require ( './../lib' ) ;
21+ var FLOAT32_EULERGAMMA = require ( './../lib' ) ;
2222
23- console . log ( FLOAT32_GAMMA ) ;
23+ console . log ( FLOAT32_EULERGAMMA ) ;
2424// => 0.5772156715393066
Original file line number Diff line number Diff line change 2525* @type {number }
2626*
2727* @example
28- * var FLOAT32_GAMMA = require( '@stdlib/constants/float32/eulergamma' );
28+ * var FLOAT32_EULERGAMMA = require( '@stdlib/constants/float32/eulergamma' );
2929* // returns 0.5772156715393066
3030*/
3131
@@ -45,9 +45,9 @@ var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
4545* @see [OEIS]{@link http://oeis.org/A001620}
4646* @see [Mathworld]{@link http://mathworld.wolfram.com/Euler-MascheroniConstant.html}
4747*/
48- var FLOAT32_GAMMA = float64ToFloat32 ( 0.5772156649015329 ) ;
48+ var FLOAT32_EULERGAMMA = float64ToFloat32 ( 0.5772156649015329 ) ;
4949
5050
5151// EXPORTS //
5252
53- module . exports = FLOAT32_GAMMA ;
53+ module . exports = FLOAT32_EULERGAMMA ;
Original file line number Diff line number Diff line change 2121// MODULES //
2222
2323var tape = require ( 'tape' ) ;
24- var FLOAT32_GAMMA = require ( './../lib' ) ;
24+ var FLOAT32_EULERGAMMA = require ( './../lib' ) ;
2525
2626
2727// TESTS //
2828
2929tape ( 'main export is a number' , function test ( t ) {
3030 t . ok ( true , __filename ) ;
31- t . strictEqual ( typeof FLOAT32_GAMMA , 'number' , 'main export is a number' ) ;
31+ t . strictEqual ( typeof FLOAT32_EULERGAMMA , 'number' , 'main export is a number' ) ;
3232 t . end ( ) ;
3333} ) ;
3434
3535tape ( 'the exported value is a single-precision floating-point number equal to 0.5772156715393066' , function test ( t ) {
36- t . equal ( FLOAT32_GAMMA , 0.5772156715393066 , 'returns 0.5772156715393066' ) ;
36+ t . equal ( FLOAT32_EULERGAMMA , 0.5772156715393066 , 'returns 0.5772156715393066' ) ;
3737 t . end ( ) ;
3838} ) ;
You can’t perform that action at this time.
0 commit comments