From 492f2de04e9417be4bccb4f1ca490e10a35d619a Mon Sep 17 00:00:00 2001 From: GUNJ JOSHI Date: Sat, 20 Jul 2024 11:10:13 +0530 Subject: [PATCH 1/7] feat: add constants/float64/max-safe-nth-factorial --- .../float64/max-safe-nth-factorial/README.md | 164 ++++++++++++++++++ .../max-safe-nth-factorial/docs/repl.txt | 13 ++ .../docs/types/index.d.ts | 33 ++++ .../max-safe-nth-factorial/docs/types/test.ts | 28 +++ .../max-safe-nth-factorial/examples/index.js | 44 +++++ .../float64/max_safe_nth_factorial.h | 27 +++ .../max-safe-nth-factorial/lib/index.js | 49 ++++++ .../max-safe-nth-factorial/manifest.json | 36 ++++ .../max-safe-nth-factorial/package.json | 72 ++++++++ .../max-safe-nth-factorial/test/test.js | 38 ++++ 10 files changed, 504 insertions(+) create mode 100644 lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/README.md create mode 100644 lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/repl.txt create mode 100644 lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/types/index.d.ts create mode 100644 lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/types/test.ts create mode 100644 lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/examples/index.js create mode 100644 lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/include/stdlib/constants/float64/max_safe_nth_factorial.h create mode 100644 lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/lib/index.js create mode 100644 lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/manifest.json create mode 100644 lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/package.json create mode 100644 lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/test/test.js diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/README.md b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/README.md new file mode 100644 index 000000000000..3665607ba1c5 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/README.md @@ -0,0 +1,164 @@ + + +# FLOAT64_MAX_SAFE_NTH_FACTORIAL + +> Maximum safe nth [Factorial][factorial] when stored in [double-precision floating-point][ieee754] format. + +
+ +## Usage + + + +```javascript +var FLOAT64_MAX_SAFE_NTH_FACTORIAL = require( '@stdlib/constants/float64/max-safe-nth-factorial' ); +``` + +#### FLOAT64_MAX_SAFE_NTH_FACTORIAL + +The maximum [safe][safe-integers] nth [Factorial][factorial] when stored in [double-precision floating-point][ieee754] format. + + + +```javascript +var bool = ( FLOAT64_MAX_SAFE_NTH_FACTORIAL === 170 ); +// returns true +``` + +
+ + + +
+ +## Examples + + + + + +```javascript +var FLOAT64_MAX_SAFE_NTH_FACTORIAL = require( '@stdlib/constants/float64/max-safe-nth-factorial' ); + +function factorial( n ) { + var a; + var i; + + a = 1; + for ( i = 2; i <= n; i++ ) { + a *= i; + } + return a; +} + +for ( i = 0; i < 200; i++ ) { + v = factorial( i ); + if ( i > FLOAT64_MAX_SAFE_NTH_FACTORIAL ) { + console.log( 'Unsafe: %d', v ); + } else { + console.log( 'Safe: %d', v ); + } +} +``` + +
+ + + + + +* * * + +
+ +## C APIs + + + +
+ +
+ + + + + +
+ +### Usage + +```c +#include "stdlib/constants/float64/max_safe_nth_factorial.h" +``` + +#### STDLIB_CONSTANT_FLOAT64_MAX_SAFE_NTH_FACTORIAL + +Macro for the maximum [safe][safe-integers] nth [Factorial][factorial] when stored in [double-precision floating-point][ieee754] format. + +
+ + + + + +
+ +
+ + + + + +
+ +
+ + + +
+ + + + + + + + + + + + + + diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/repl.txt b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/repl.txt new file mode 100644 index 000000000000..56bae22ea2f5 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/repl.txt @@ -0,0 +1,13 @@ + +{{alias}} + Maximum safe nth Factorial when stored in double-precision floating- + point format. + + Examples + -------- + > {{alias}} + 170 + + See Also + -------- + diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/types/index.d.ts b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/types/index.d.ts new file mode 100644 index 000000000000..a1100b060699 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/types/index.d.ts @@ -0,0 +1,33 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +// TypeScript Version: 4.1 + +/** +* Maximum safe nth Factorial when stored in double-precision floating-point format. +* +* @example +* var max = FLOAT64_MAX_SAFE_NTH_FACTORIAL; +* // returns 170 +*/ +declare const FLOAT64_MAX_SAFE_NTH_FACTORIAL: number; + + +// EXPORTS // + +export = FLOAT64_MAX_SAFE_NTH_FACTORIAL; diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/types/test.ts b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/types/test.ts new file mode 100644 index 000000000000..4f382a697336 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/types/test.ts @@ -0,0 +1,28 @@ +/* +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +import FLOAT64_MAX_SAFE_NTH_FACTORIAL = require( './index' ); + + +// TESTS // + +// The export is a number... +{ + // eslint-disable-next-line @typescript-eslint/no-unused-expressions + FLOAT64_MAX_SAFE_NTH_FACTORIAL; // $ExpectType number +} diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/examples/index.js b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/examples/index.js new file mode 100644 index 000000000000..72fe16078b8e --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/examples/index.js @@ -0,0 +1,44 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +var FLOAT64_MAX_SAFE_NTH_FACTORIAL = require( './../lib' ); + +var v; +var i; + +function factorial( n ) { + var a; + var i; + + a = 1; + for ( i = 2; i <= n; i++ ) { + a *= i; + } + return a; +} + +for ( i = 0; i < 200; i++ ) { + v = factorial( i ); + if ( i > FLOAT64_MAX_SAFE_NTH_FACTORIAL ) { + console.log( 'Unsafe: %d', v ); + } else { + console.log( 'Safe: %d', v ); + } +} diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/include/stdlib/constants/float64/max_safe_nth_factorial.h b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/include/stdlib/constants/float64/max_safe_nth_factorial.h new file mode 100644 index 000000000000..dee5b4c78694 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/include/stdlib/constants/float64/max_safe_nth_factorial.h @@ -0,0 +1,27 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +#ifndef STDLIB_CONSTANTS_FLOAT64_MAX_SAFE_NTH_FACTORIAL_H +#define STDLIB_CONSTANTS_FLOAT64_MAX_SAFE_NTH_FACTORIAL_H + +/** +* Macro for the maximum safe nth Factorial when stored in double-precision floating-point format. +*/ +#define STDLIB_CONSTANT_FLOAT64_MAX_SAFE_NTH_FACTORIAL 170 + +#endif // !STDLIB_CONSTANTS_FLOAT64_MAX_SAFE_NTH_FACTORIAL_H diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/lib/index.js b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/lib/index.js new file mode 100644 index 000000000000..0b01aba1d3dd --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/lib/index.js @@ -0,0 +1,49 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +/** +* Maximum safe nth Factorial when stored in double-precision floating-point format. +* +* @module @stdlib/constants/float64/max-safe-nth-factorial +* @type {integer} +* +* @example +* var FLOAT64_MAX_SAFE_NTH_FACTORIAL = require( '@stdlib/constants/float64/max-safe-nth-factorial' ); +* // returns 170 +*/ + + +// MAIN // + +/** +* The maximum safe nth Factorial when stored in double-precision floating-point format. +* +* @constant +* @type {integer} +* @default 170 +* @see [Factorial number]{@link https://en.wikipedia.org/wiki/Factorial} +* @see [IEEE 754]{@link https://en.wikipedia.org/wiki/IEEE_754-1985} +*/ +var FLOAT64_MAX_SAFE_NTH_FACTORIAL = 170|0; // asm type annotation + + +// EXPORTS // + +module.exports = FLOAT64_MAX_SAFE_NTH_FACTORIAL; diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/manifest.json b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/manifest.json new file mode 100644 index 000000000000..844d692f6439 --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/manifest.json @@ -0,0 +1,36 @@ +{ + "options": {}, + "fields": [ + { + "field": "src", + "resolve": true, + "relative": true + }, + { + "field": "include", + "resolve": true, + "relative": true + }, + { + "field": "libraries", + "resolve": false, + "relative": false + }, + { + "field": "libpath", + "resolve": true, + "relative": false + } + ], + "confs": [ + { + "src": [], + "include": [ + "./include" + ], + "libraries": [], + "libpath": [], + "dependencies": [] + } + ] +} diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/package.json b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/package.json new file mode 100644 index 000000000000..c80e26ce288e --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/package.json @@ -0,0 +1,72 @@ +{ + "name": "@stdlib/constants/float64/max-safe-nth-factorial", + "version": "0.0.0", + "description": "Maximum safe nth Factorial when stored in double-precision floating-point format.", + "license": "Apache-2.0", + "author": { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + }, + "contributors": [ + { + "name": "The Stdlib Authors", + "url": "https://github.com/stdlib-js/stdlib/graphs/contributors" + } + ], + "main": "./lib", + "directories": { + "doc": "./docs", + "example": "./examples", + "include": "./include", + "lib": "./lib", + "test": "./test" + }, + "types": "./docs/types", + "scripts": {}, + "homepage": "https://github.com/stdlib-js/stdlib", + "repository": { + "type": "git", + "url": "git://github.com/stdlib-js/stdlib.git" + }, + "bugs": { + "url": "https://github.com/stdlib-js/stdlib/issues" + }, + "dependencies": {}, + "devDependencies": {}, + "engines": { + "node": ">=0.10.0", + "npm": ">2.7.0" + }, + "os": [ + "aix", + "darwin", + "freebsd", + "linux", + "macos", + "openbsd", + "sunos", + "win32", + "windows" + ], + "keywords": [ + "stdlib", + "stdmath", + "constant", + "const", + "max", + "maximum", + "factorial", + "number", + "safe", + "integer", + "double", + "dbl", + "floating", + "point", + "floating-point", + "float", + "float64", + "f64", + "ieee754" + ] +} diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/test/test.js b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/test/test.js new file mode 100644 index 000000000000..152d1850a14d --- /dev/null +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/test/test.js @@ -0,0 +1,38 @@ +/** +* @license Apache-2.0 +* +* Copyright (c) 2024 The Stdlib Authors. +* +* Licensed under the Apache License, Version 2.0 (the "License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* http://www.apache.org/licenses/LICENSE-2.0 +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ + +'use strict'; + +// MODULES // + +var tape = require( 'tape' ); +var FLOAT64_MAX_SAFE_NTH_FACTORIAL = require( './../lib' ); + + +// TESTS // + +tape( 'main export is a number', function test( t ) { + t.ok( true, __filename ); + t.strictEqual( typeof FLOAT64_MAX_SAFE_NTH_FACTORIAL, 'number', 'main export is a number' ); + t.end(); +}); + +tape( 'the exported value is 170', function test( t ) { + t.strictEqual( FLOAT64_MAX_SAFE_NTH_FACTORIAL, 170, 'returns expected value' ); + t.end(); +}); From 49ce96bd0b550a51de9eb3cbe0d52f062ff0f763 Mon Sep 17 00:00:00 2001 From: GUNJ JOSHI Date: Sat, 20 Jul 2024 16:08:50 +0530 Subject: [PATCH 2/7] Update README.md Signed-off-by: GUNJ JOSHI --- .../constants/float64/max-safe-nth-factorial/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/README.md b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/README.md index 3665607ba1c5..196f5e7f4379 100644 --- a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/README.md +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/README.md @@ -20,7 +20,7 @@ limitations under the License. # FLOAT64_MAX_SAFE_NTH_FACTORIAL -> Maximum safe nth [Factorial][factorial] when stored in [double-precision floating-point][ieee754] format. +> Maximum safe nth [factorial][factorial] when stored in [double-precision floating-point][ieee754] format.
@@ -34,7 +34,7 @@ var FLOAT64_MAX_SAFE_NTH_FACTORIAL = require( '@stdlib/constants/float64/max-saf #### FLOAT64_MAX_SAFE_NTH_FACTORIAL -The maximum [safe][safe-integers] nth [Factorial][factorial] when stored in [double-precision floating-point][ieee754] format. +The maximum [safe][safe-integers] nth [factorial][factorial] when stored in [double-precision floating-point][ieee754] format. @@ -111,7 +111,7 @@ for ( i = 0; i < 200; i++ ) { #### STDLIB_CONSTANT_FLOAT64_MAX_SAFE_NTH_FACTORIAL -Macro for the maximum [safe][safe-integers] nth [Factorial][factorial] when stored in [double-precision floating-point][ieee754] format. +Macro for the maximum [safe][safe-integers] nth [factorial][factorial] when stored in [double-precision floating-point][ieee754] format.
From f9c9a514d883f9cceeb03017c42630eeb1b5dc97 Mon Sep 17 00:00:00 2001 From: GUNJ JOSHI Date: Sat, 20 Jul 2024 16:09:09 +0530 Subject: [PATCH 3/7] Update repl.txt Signed-off-by: GUNJ JOSHI --- .../constants/float64/max-safe-nth-factorial/docs/repl.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/repl.txt b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/repl.txt index 56bae22ea2f5..cb3eb641e05b 100644 --- a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/repl.txt +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/repl.txt @@ -1,6 +1,6 @@ {{alias}} - Maximum safe nth Factorial when stored in double-precision floating- + Maximum safe nth factorial when stored in double-precision floating- point format. Examples From d9c47ae980a72ae5712364ae961c57fcb7aa1bc5 Mon Sep 17 00:00:00 2001 From: GUNJ JOSHI Date: Sat, 20 Jul 2024 16:09:33 +0530 Subject: [PATCH 4/7] Update index.d.ts Signed-off-by: GUNJ JOSHI --- .../float64/max-safe-nth-factorial/docs/types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/types/index.d.ts b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/types/index.d.ts index a1100b060699..00e260c35813 100644 --- a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/docs/types/index.d.ts @@ -19,7 +19,7 @@ // TypeScript Version: 4.1 /** -* Maximum safe nth Factorial when stored in double-precision floating-point format. +* Maximum safe nth factorial when stored in double-precision floating-point format. * * @example * var max = FLOAT64_MAX_SAFE_NTH_FACTORIAL; From d4c893de25997eadad588d04aa6088c560c85d02 Mon Sep 17 00:00:00 2001 From: GUNJ JOSHI Date: Sat, 20 Jul 2024 16:10:02 +0530 Subject: [PATCH 5/7] Update max_safe_nth_factorial.h Signed-off-by: GUNJ JOSHI --- .../include/stdlib/constants/float64/max_safe_nth_factorial.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/include/stdlib/constants/float64/max_safe_nth_factorial.h b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/include/stdlib/constants/float64/max_safe_nth_factorial.h index dee5b4c78694..56fc69f1cc79 100644 --- a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/include/stdlib/constants/float64/max_safe_nth_factorial.h +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/include/stdlib/constants/float64/max_safe_nth_factorial.h @@ -20,7 +20,7 @@ #define STDLIB_CONSTANTS_FLOAT64_MAX_SAFE_NTH_FACTORIAL_H /** -* Macro for the maximum safe nth Factorial when stored in double-precision floating-point format. +* Macro for the maximum safe nth factorial when stored in double-precision floating-point format. */ #define STDLIB_CONSTANT_FLOAT64_MAX_SAFE_NTH_FACTORIAL 170 From 189cdda9f4e218dbee6ead395fc4b1cd796eff0b Mon Sep 17 00:00:00 2001 From: GUNJ JOSHI Date: Sat, 20 Jul 2024 16:10:57 +0530 Subject: [PATCH 6/7] Update index.js Signed-off-by: GUNJ JOSHI --- .../constants/float64/max-safe-nth-factorial/lib/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/lib/index.js b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/lib/index.js index 0b01aba1d3dd..639509833792 100644 --- a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/lib/index.js +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/lib/index.js @@ -19,7 +19,7 @@ 'use strict'; /** -* Maximum safe nth Factorial when stored in double-precision floating-point format. +* Maximum safe nth factorial when stored in double-precision floating-point format. * * @module @stdlib/constants/float64/max-safe-nth-factorial * @type {integer} @@ -33,12 +33,12 @@ // MAIN // /** -* The maximum safe nth Factorial when stored in double-precision floating-point format. +* The maximum safe nth factorial when stored in double-precision floating-point format. * * @constant * @type {integer} * @default 170 -* @see [Factorial number]{@link https://en.wikipedia.org/wiki/Factorial} +* @see [factorial]{@link https://en.wikipedia.org/wiki/Factorial} * @see [IEEE 754]{@link https://en.wikipedia.org/wiki/IEEE_754-1985} */ var FLOAT64_MAX_SAFE_NTH_FACTORIAL = 170|0; // asm type annotation From 7a8e9ceb45dd5c749102593cfffb93ecfe0e7f17 Mon Sep 17 00:00:00 2001 From: GUNJ JOSHI Date: Sat, 20 Jul 2024 16:11:37 +0530 Subject: [PATCH 7/7] Update package.json Signed-off-by: GUNJ JOSHI --- .../constants/float64/max-safe-nth-factorial/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/package.json b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/package.json index c80e26ce288e..91e65c705c80 100644 --- a/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/package.json +++ b/lib/node_modules/@stdlib/constants/float64/max-safe-nth-factorial/package.json @@ -1,7 +1,7 @@ { "name": "@stdlib/constants/float64/max-safe-nth-factorial", "version": "0.0.0", - "description": "Maximum safe nth Factorial when stored in double-precision floating-point format.", + "description": "Maximum safe nth factorial when stored in double-precision floating-point format.", "license": "Apache-2.0", "author": { "name": "The Stdlib Authors",