From 176831d59d3aab528e29fad03c015df19f7d5ea4 Mon Sep 17 00:00:00 2001 From: Lokeshranjan8 Date: Sat, 30 Aug 2025 03:20:31 +0530 Subject: [PATCH 1/8] chore: add structured package data for math/base/special/sqrt --- 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/sqrt/package.json | 80 ++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json index 949ffa145e87..94645181e5b3 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json @@ -63,5 +63,83 @@ "root", "power", "number" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "sqrt", + "alias": "sqrt", + "pkg_desc": "compute the principal square root", + "desc": "computes the principal square root", + "short_desc": "square", + "parameters": [ + { + "name": "x", + "desc": "input value (in number)", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + 0, + 100 + ] + }, + "example_values": [ + 0, + 0.01, + 0.25, + 0.5, + 1, + 2, + 3, + 4, + 9, + 16, + 25, + 36, + 49, + 64, + 81, + 100, + 0.1, + 10, + 50, + 99.99 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "square", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "sqrt", + "square", + "stdmath", + "mathematics", + "number", + "math" + ], + "extra_keywords": [ + "math.sqrt" + ] + } + } } From 9d9dead816dba63f4f8ac77f162e99f08589b936 Mon Sep 17 00:00:00 2001 From: Lokeshranjan8 Date: Sat, 30 Aug 2025 03:21:08 +0530 Subject: [PATCH 2/8] chore: add structured package data for math/base/special/sqrt --- 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 --- --- lib/node_modules/@stdlib/math/base/special/sqrt/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json index 94645181e5b3..455114ac3aef 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json @@ -84,7 +84,7 @@ }, "domain": [ { - "min": "-infinity", + "min": "0", "max": "infinity" } ], From e8b695814871f7db2636608e82cd8db4ad1a0d16 Mon Sep 17 00:00:00 2001 From: Lokesh Ranjan Date: Sat, 30 Aug 2025 03:33:28 +0530 Subject: [PATCH 3/8] Update package.json Signed-off-by: Lokesh Ranjan --- lib/node_modules/@stdlib/math/base/special/sqrt/package.json | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json index 455114ac3aef..e50c8fdba89a 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json @@ -132,8 +132,6 @@ "keywords": [ "sqrt", "square", - "stdmath", - "mathematics", "number", "math" ], From 26b810e623f481d6ec4d024d5958d4ec27afe47c Mon Sep 17 00:00:00 2001 From: Lokesh Ranjan Date: Sat, 30 Aug 2025 03:34:53 +0530 Subject: [PATCH 4/8] Add 'stdmath' to keywords in package.json Signed-off-by: Lokesh Ranjan --- lib/node_modules/@stdlib/math/base/special/sqrt/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json index e50c8fdba89a..f2398f6de478 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json @@ -132,6 +132,7 @@ "keywords": [ "sqrt", "square", + "stdmath", "number", "math" ], From 66708bca0dc673066a8998e9f36a4f2b4d9c1d8b Mon Sep 17 00:00:00 2001 From: Athan Date: Fri, 29 Aug 2025 16:53:20 -0700 Subject: [PATCH 5/8] docs: fix description Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/sqrt/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json index f2398f6de478..7b4ef4aca02d 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json @@ -71,7 +71,7 @@ "alias": "sqrt", "pkg_desc": "compute the principal square root", "desc": "computes the principal square root", - "short_desc": "square", + "short_desc": "principal square root", "parameters": [ { "name": "x", From 0efef44fd396ef752976a7fc7ce29d2666f9c8f3 Mon Sep 17 00:00:00 2001 From: Athan Date: Fri, 29 Aug 2025 16:53:44 -0700 Subject: [PATCH 6/8] docs: fix description Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/sqrt/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json index 7b4ef4aca02d..768c900e61ec 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json @@ -75,7 +75,7 @@ "parameters": [ { "name": "x", - "desc": "input value (in number)", + "desc": "input value", "type": { "javascript": "number", "jsdoc": "number", From 05c2b58518b9321fc9557232cb5bd242b753ec9b Mon Sep 17 00:00:00 2001 From: Athan Date: Fri, 29 Aug 2025 16:54:27 -0700 Subject: [PATCH 7/8] docs: fix description Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/sqrt/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json index 768c900e61ec..1980323c3d91 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json @@ -121,7 +121,7 @@ ], "output_policy": "real_floating_point_and_generic", "returns": { - "desc": "square", + "desc": "square root", "type": { "javascript": "number", "jsdoc": "number", From fdec0269d764b5d59cd1bf918a7a2bc971273e6d Mon Sep 17 00:00:00 2001 From: Athan Date: Fri, 29 Aug 2025 16:54:58 -0700 Subject: [PATCH 8/8] chore: update keywords Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/sqrt/package.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json index 1980323c3d91..337da82aa22d 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrt/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sqrt/package.json @@ -132,9 +132,8 @@ "keywords": [ "sqrt", "square", - "stdmath", - "number", - "math" + "root", + "principal" ], "extra_keywords": [ "math.sqrt"