From 53e9ad0228cf790626c1e0edfb27d939c9e82709 Mon Sep 17 00:00:00 2001 From: Gaurav Date: Sat, 6 Sep 2025 23:39:18 +0530 Subject: [PATCH 1/5] chore: add structured data package for math/base/special/acsc --- 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/acsc/package.json | 86 ++++++++++++++++++- 1 file changed, 85 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/acsc/package.json b/lib/node_modules/@stdlib/math/base/special/acsc/package.json index dff591d9fb84..feb4a143ffcb 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsc/package.json +++ b/lib/node_modules/@stdlib/math/base/special/acsc/package.json @@ -65,5 +65,89 @@ "trig", "trigonometry", "angle" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "acsc", + "alias": "acsc", + "pkg_desc": "compute the inverse cosecant of a number", + "desc": "computes the inverse cosecant (arc-cosecant) of a number", + "short_desc": "inverse cosecant", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": "-infinity", + "max": -1 + }, + { + "min": 1, + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + 1.1, + 10 + ] + }, + "example_values": [ + 2, + -2, + 1.5, + -3.7, + 5, + -8.2, + 10, + -12.5, + 3.3, + -4.4, + 7.7, + -9.9, + 15, + -20, + 1.2, + -1.3, + 2.5, + -2.6 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "inverse cosecant", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "inverse", + "cosecant", + "acsc", + "arc", + "arccosecant", + "trig", + "trigonometry", + "radians", + "angle", + "sin" + ], + "extra_keywords": [ + "math.asin" + ] + } + } } From 5e65468234ed1c8e2b8dc9418473629bb72d1432 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 6 Sep 2025 18:31:56 -0700 Subject: [PATCH 2/5] docs: update descriptions Signed-off-by: Athan --- .../@stdlib/math/base/special/acsc/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/acsc/package.json b/lib/node_modules/@stdlib/math/base/special/acsc/package.json index feb4a143ffcb..632d6f830694 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsc/package.json +++ b/lib/node_modules/@stdlib/math/base/special/acsc/package.json @@ -71,9 +71,9 @@ "$schema": "math/base@v1.0", "base_alias": "acsc", "alias": "acsc", - "pkg_desc": "compute the inverse cosecant of a number", - "desc": "computes the inverse cosecant (arc-cosecant) of a number", - "short_desc": "inverse cosecant", + "pkg_desc": "compute the arccosecant", + "desc": "computes the arccosecant", + "short_desc": "arcosecant", "parameters": [ { "name": "x", From 09474970f1478886d827fd5e5fc29e13512ea1a5 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 6 Sep 2025 18:32:43 -0700 Subject: [PATCH 3/5] chore: ensure at least 20 example values Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/acsc/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/acsc/package.json b/lib/node_modules/@stdlib/math/base/special/acsc/package.json index 632d6f830694..3f57177228f8 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsc/package.json +++ b/lib/node_modules/@stdlib/math/base/special/acsc/package.json @@ -119,7 +119,9 @@ 1.2, -1.3, 2.5, - -2.6 + -2.6, + 3.14, + -3.14 ] } ], From b2f463d2b5a599f124993255efc192ea194e8a40 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 6 Sep 2025 18:33:05 -0700 Subject: [PATCH 4/5] docs: update description Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/acsc/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/acsc/package.json b/lib/node_modules/@stdlib/math/base/special/acsc/package.json index 3f57177228f8..622314dd85fc 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsc/package.json +++ b/lib/node_modules/@stdlib/math/base/special/acsc/package.json @@ -127,7 +127,7 @@ ], "output_policy": "real_floating_point_and_generic", "returns": { - "desc": "inverse cosecant", + "desc": "arccosecant", "type": { "javascript": "number", "jsdoc": "number", From 05fa2a3af99fc8d383e8860621975d853d42613c Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 6 Sep 2025 18:33:38 -0700 Subject: [PATCH 5/5] chore: remove keywords which are too general Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/acsc/package.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/acsc/package.json b/lib/node_modules/@stdlib/math/base/special/acsc/package.json index 622314dd85fc..58d515a18697 100644 --- a/lib/node_modules/@stdlib/math/base/special/acsc/package.json +++ b/lib/node_modules/@stdlib/math/base/special/acsc/package.json @@ -141,9 +141,6 @@ "acsc", "arc", "arccosecant", - "trig", - "trigonometry", - "radians", "angle", "sin" ],