From 84f1a318496f7aa8325de63d2640e8799df60d6c Mon Sep 17 00:00:00 2001 From: Lokeshranjan8 Date: Sat, 6 Sep 2025 22:23:26 +0530 Subject: [PATCH 1/4] chore: add structured package data for math/base/special/factorial2 --- 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: na - task: lint_package_json status: passed - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../math/base/special/factorial2/package.json | 74 ++++++++++++++++++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/factorial2/package.json b/lib/node_modules/@stdlib/math/base/special/factorial2/package.json index d634235026d1..5e49ab465a5f 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorial2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/factorial2/package.json @@ -66,5 +66,77 @@ "combinatorics", "double", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "factorial2", + "alias": "factorial2", + "pkg_desc": "compute the double factorial", + "desc": "computes the double factorial", + "short_desc": "factorial2", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": 0, + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/discrete-uniform", + "parameters": [ + 0, + 100 + ] + }, + "example_values": [ + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "factorial2", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "factorial2", + "dfact" + ], + "extra_keywords": [] + } + } } From 68467d6b4455a9786963a78179a557c71977f285 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 6 Sep 2025 18:19:23 -0700 Subject: [PATCH 2/4] docs: fix description Signed-off-by: Athan --- .../@stdlib/math/base/special/factorial2/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/factorial2/package.json b/lib/node_modules/@stdlib/math/base/special/factorial2/package.json index 5e49ab465a5f..51c2a16a6cfd 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorial2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/factorial2/package.json @@ -74,7 +74,7 @@ "alias": "factorial2", "pkg_desc": "compute the double factorial", "desc": "computes the double factorial", - "short_desc": "factorial2", + "short_desc": "double factorial", "parameters": [ { "name": "x", From 87ea7c4ffb2f5d93c7352f0c2b2b8d4df9e6acd6 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 6 Sep 2025 18:19:45 -0700 Subject: [PATCH 3/4] docs: fix description Signed-off-by: Athan --- .../@stdlib/math/base/special/factorial2/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/factorial2/package.json b/lib/node_modules/@stdlib/math/base/special/factorial2/package.json index 51c2a16a6cfd..229759c48145 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorial2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/factorial2/package.json @@ -124,7 +124,7 @@ ], "output_policy": "real_floating_point_and_generic", "returns": { - "desc": "factorial2", + "desc": "double factorial", "type": { "javascript": "number", "jsdoc": "number", From a4defedd1f9d1bcabcdd6790e6e4334226678a8a Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 6 Sep 2025 18:20:18 -0700 Subject: [PATCH 4/4] chore: add keywords Signed-off-by: Athan --- .../@stdlib/math/base/special/factorial2/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/factorial2/package.json b/lib/node_modules/@stdlib/math/base/special/factorial2/package.json index 229759c48145..35f9497cef9f 100644 --- a/lib/node_modules/@stdlib/math/base/special/factorial2/package.json +++ b/lib/node_modules/@stdlib/math/base/special/factorial2/package.json @@ -134,7 +134,9 @@ }, "keywords": [ "factorial2", - "dfact" + "dfact", + "factorial", + "combinatorics" ], "extra_keywords": [] }