From e973ff38c1c283d9bdc2f4acebe8859d449442df Mon Sep 17 00:00:00 2001 From: Lokeshranjan8 Date: Fri, 29 Aug 2025 19:28:17 +0530 Subject: [PATCH 1/5] chore: add structured package data for math/base/special/sin --- 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/sin/package.json | 79 ++++++++++++++++++- 1 file changed, 78 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sin/package.json b/lib/node_modules/@stdlib/math/base/special/sin/package.json index c407ebd5202f..105630d83c8d 100644 --- a/lib/node_modules/@stdlib/math/base/special/sin/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sin/package.json @@ -63,5 +63,82 @@ "trigonometry", "radians", "angle" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "sin", + "alias": "sin", + "pkg_desc": "Compute the sine", + "desc": "computes the sine", + "short_desc": "sine", + "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, + 2.3562, + 3.1416, + -0.7854, + -1.0472, + -2.3562, + -3.1416, + 5, + -2, + 0.1, + -0.1, + 6.0, + -6.0, + 7.0, + -7.0, + 10.0, + -10.0 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "sine", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "sin", + "sine", + "trig", + "trigonometry", + "radians" + ], + "extra_keywords": [ + "math.sin" + ] + } + } } From a1a035985ceab936a62897850b183006d701645f Mon Sep 17 00:00:00 2001 From: Lokesh Ranjan Date: Fri, 29 Aug 2025 19:53:29 +0530 Subject: [PATCH 2/5] Update package.json Signed-off-by: Lokesh Ranjan --- .../@stdlib/math/base/special/sin/package.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sin/package.json b/lib/node_modules/@stdlib/math/base/special/sin/package.json index 105630d83c8d..6d38d7ec631a 100644 --- a/lib/node_modules/@stdlib/math/base/special/sin/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sin/package.json @@ -99,23 +99,23 @@ 0, 0.5236, 0.7854, + 1.5708, 1.0472, 2.3562, 3.1416, + 4.7124, + 6.2832, + -0.5236, -0.7854, -1.0472, + -1.5708, -2.3562, -3.1416, - 5, - -2, + 7.8540, + -7.8540, 0.1, -0.1, - 6.0, - -6.0, - 7.0, - -7.0, - 10.0, - -10.0 + 3.5, ] } ], From 5650d47180f26a8e0fad25bd42c12ba7753c334f Mon Sep 17 00:00:00 2001 From: Lokesh Ranjan Date: Fri, 29 Aug 2025 19:59:36 +0530 Subject: [PATCH 3/5] Fix formatting in package.json for sin function Signed-off-by: Lokesh Ranjan --- lib/node_modules/@stdlib/math/base/special/sin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sin/package.json b/lib/node_modules/@stdlib/math/base/special/sin/package.json index 6d38d7ec631a..6efe3f1ab7d3 100644 --- a/lib/node_modules/@stdlib/math/base/special/sin/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sin/package.json @@ -115,7 +115,7 @@ -7.8540, 0.1, -0.1, - 3.5, + 3.5 ] } ], From 97ec76e6851e9b29ecbfc3879898e7ea9b037d19 Mon Sep 17 00:00:00 2001 From: Athan Date: Fri, 29 Aug 2025 13:50:34 -0700 Subject: [PATCH 4/5] docs: fix description Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/sin/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sin/package.json b/lib/node_modules/@stdlib/math/base/special/sin/package.json index 6efe3f1ab7d3..e7337ca27256 100644 --- a/lib/node_modules/@stdlib/math/base/special/sin/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sin/package.json @@ -69,7 +69,7 @@ "$schema": "math/base@v1.0", "base_alias": "sin", "alias": "sin", - "pkg_desc": "Compute the sine", + "pkg_desc": "compute the sine", "desc": "computes the sine", "short_desc": "sine", "parameters": [ From 833fdb4e49b80f2d4d1e641fa7217974c80bf440 Mon Sep 17 00:00:00 2001 From: Athan Date: Fri, 29 Aug 2025 13:59:42 -0700 Subject: [PATCH 5/5] chore: resolve lint errors Signed-off-by: Athan --- lib/node_modules/@stdlib/math/base/special/sin/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sin/package.json b/lib/node_modules/@stdlib/math/base/special/sin/package.json index e7337ca27256..6e0f1eb5c533 100644 --- a/lib/node_modules/@stdlib/math/base/special/sin/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sin/package.json @@ -111,8 +111,8 @@ -1.5708, -2.3562, -3.1416, - 7.8540, - -7.8540, + 7.854, + -7.854, 0.1, -0.1, 3.5