Skip to content

Commit 9a41c60

Browse files
committed
fix: correct FLOAT32_GAMMA_LANCZOS_G
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: passed - task: lint_package_json status: na - task: lint_repl_help status: passed - task: lint_javascript_src status: passed - task: lint_javascript_cli status: na - task: lint_javascript_examples status: passed - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 2f1bc9e commit 9a41c60

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

lib/node_modules/@stdlib/constants/float32/gamma-lanczos-g/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var FLOAT32_GAMMA_LANCZOS_G = require( '@stdlib/constants/float32/gamma-lanczos-
4141
Arbitrary constant `g` to be used in [Lanczos approximation][lanczos-approximation] functions.
4242

4343
```javascript
44-
var bool = ( FLOAT32_GAMMA_LANCZOS_G === 10.900510787963867 );
44+
var bool = ( FLOAT32_GAMMA_LANCZOS_G === 1.42845618724823 );
4545
// returns true
4646
```
4747

@@ -59,7 +59,7 @@ var bool = ( FLOAT32_GAMMA_LANCZOS_G === 10.900510787963867 );
5959
var FLOAT32_GAMMA_LANCZOS_G = require( '@stdlib/constants/float32/gamma-lanczos-g' );
6060

6161
console.log( FLOAT32_GAMMA_LANCZOS_G );
62-
// => 10.900510787963867
62+
// => 1.42845618724823
6363
```
6464

6565
</section>
@@ -126,7 +126,7 @@ Macro for the arbitrary constant `g` to be used in [Lanczos approximation][lancz
126126

127127
## References
128128

129-
- Pugh, Glendon R. 2004. "An analysis of the Lanczos gamma approximation." PhD thesis, University of British Columbia. [&lt;https://web.viu.ca/pughg/phdThesis/phdThesis.pdf>][@pugh:2004a].
129+
- Boost C++ Libraries. "The Lanczos Approximation." [https://beta.boost.org/doc/libs/1_82_0/libs/math/doc/html/math_toolkit/lanczos.html][@boost:lanczos].
130130

131131
</section>
132132

@@ -146,7 +146,7 @@ Macro for the arbitrary constant `g` to be used in [Lanczos approximation][lancz
146146

147147
[lanczos-approximation]: https://en.wikipedia.org/wiki/Lanczos_approximation
148148

149-
[@pugh:2004a]: https://web.viu.ca/pughg/phdThesis/phdThesis.pdf
149+
[@boost:lanczos]: https://beta.boost.org/doc/libs/1_82_0/libs/math/doc/html/math_toolkit/lanczos.html
150150

151151
</section>
152152

lib/node_modules/@stdlib/constants/float32/gamma-lanczos-g/docs/repl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Examples
66
--------
77
> {{alias}}
8-
10.900510787963867
8+
1.42845618724823
99

1010
See Also
1111
--------

lib/node_modules/@stdlib/constants/float32/gamma-lanczos-g/docs/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @example
2525
* var g = FLOAT32_GAMMA_LANCZOS_G;
26-
* // returns 10.900510787963867
26+
* // returns 1.42845618724823
2727
*/
2828
declare const FLOAT32_GAMMA_LANCZOS_G: number;
2929

lib/node_modules/@stdlib/constants/float32/gamma-lanczos-g/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
var FLOAT32_GAMMA_LANCZOS_G = require( './../lib' );
2222

2323
console.log( FLOAT32_GAMMA_LANCZOS_G );
24-
// => 10.900510787963867
24+
// => 1.42845618724823

lib/node_modules/@stdlib/constants/float32/gamma-lanczos-g/include/stdlib/constants/float32/gamma_lanczos_g.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
/**
2323
* Macro for the arbitrary constant `g` to be used in Lanczos approximation functions.
2424
*/
25-
#define STDLIB_CONSTANT_FLOAT32_GAMMA_LANCZOS_G 10.900511f
25+
#define STDLIB_CONSTANT_FLOAT32_GAMMA_LANCZOS_G 1.428456135094165802001953125f
2626

2727
#endif // !STDLIB_CONSTANTS_FLOAT32_GAMMA_LANCZOS_G_H

lib/node_modules/@stdlib/constants/float32/gamma-lanczos-g/lib/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*
2727
* @example
2828
* var FLOAT32_GAMMA_LANCZOS_G = require( '@stdlib/constants/float32/gamma-lanczos-g' );
29-
* // returns 10.900510787963867
29+
* // returns 1.42845618724823
3030
*/
3131

3232
// MODULES //
@@ -41,10 +41,10 @@ var float64ToFloat32 = require( '@stdlib/number/float64/base/to-float32' );
4141
*
4242
* @constant
4343
* @type {number}
44-
* @default 10.900510787963867
44+
* @default 1.42845618724823
4545
* @see [Lanczos Approximation]{@link https://en.wikipedia.org/wiki/Lanczos_approximation}
4646
*/
47-
var FLOAT32_GAMMA_LANCZOS_G = float64ToFloat32( 10.900511 );
47+
var FLOAT32_GAMMA_LANCZOS_G = float64ToFloat32( 1.428456135094165802001953125 );
4848

4949

5050
// EXPORTS //

lib/node_modules/@stdlib/constants/float32/gamma-lanczos-g/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ tape( 'main export is a number', function test( t ) {
3232
t.end();
3333
});
3434

35-
tape( 'the exported value equals `10.900510787963867`', function test( t ) {
36-
var expected = 10.900510787963867;
35+
tape( 'the exported value equals `1.42845618724823`', function test( t ) {
36+
var expected = 1.42845618724823;
3737
t.strictEqual( FLOAT32_GAMMA_LANCZOS_G, expected, 'returns expected value' );
3838
t.end();
3939
});

0 commit comments

Comments
 (0)