From 8b524f68227bafd78c7ded4ba1a7f43dc7376977 Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Fri, 24 Oct 2025 22:27:05 +0530 Subject: [PATCH 1/2] chore: add structured package data for math/base/special/tanh --- 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: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../math/base/special/tanh/package.json | 82 ++++++++++++++++++- 1 file changed, 81 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/tanh/package.json b/lib/node_modules/@stdlib/math/base/special/tanh/package.json index d58f748c557c..0d718bdf96b2 100644 --- a/lib/node_modules/@stdlib/math/base/special/tanh/package.json +++ b/lib/node_modules/@stdlib/math/base/special/tanh/package.json @@ -68,5 +68,85 @@ "angle", "polyfill", "ponyfill" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "tanh", + "alias": "tanh", + "pkg_desc": "compute the hyperbolic tangent of a double-precision floating-point number", + "desc": "computes the hyperbolic tangent of a double-precision floating-point number", + "short_desc": "hyperbolic tangent", + "parameters": [ + { + "name": "x", + "desc": "input value (in radians)", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -10, + 10 + ] + }, + "example_values": [ + 0, + 0.5236, + 0.7854, + 1.0472, + 1.5708, + 3.1416, + 4.7124, + 6.2832, + -0.7854, + -1.5708, + -3.1416, + 5, + -2, + 0.1, + -0.1, + 2.3562, + -2.3562, + 7.85398, + -7.85398, + 10 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "hyperbolic tangent", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "tangent", + "tan", + "tanh", + "hyperbolic", + "trig", + "trigonometry", + "radians", + "angle" + ], + "extra_keywords": [ + "math.tanh" + ] + } + } } From 928cce130a8b4130e8b300bfd98df7262b7dfede Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Wed, 29 Oct 2025 19:00:17 +0530 Subject: [PATCH 2/2] Change base alias from 'tanh' to 'tan' Signed-off-by: Manvith <148960168+manvith2003@users.noreply.github.com> --- lib/node_modules/@stdlib/math/base/special/tanh/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/tanh/package.json b/lib/node_modules/@stdlib/math/base/special/tanh/package.json index 0d718bdf96b2..ff7276e378dc 100644 --- a/lib/node_modules/@stdlib/math/base/special/tanh/package.json +++ b/lib/node_modules/@stdlib/math/base/special/tanh/package.json @@ -72,7 +72,7 @@ "__stdlib__": { "scaffold": { "$schema": "math/base@v1.0", - "base_alias": "tanh", + "base_alias": "tan", "alias": "tanh", "pkg_desc": "compute the hyperbolic tangent of a double-precision floating-point number", "desc": "computes the hyperbolic tangent of a double-precision floating-point number",