From 612b10b28a20a7e6daeee02a097c5134a1fdf3d6 Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Fri, 7 Nov 2025 18:10:06 +0530 Subject: [PATCH 1/2] chore: add structured package data for math/base/special/log1p --- 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/log1p/package.json | 80 ++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/log1p/package.json b/lib/node_modules/@stdlib/math/base/special/log1p/package.json index 0f1c590b0b99..4b67e5595f6b 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1p/package.json +++ b/lib/node_modules/@stdlib/math/base/special/log1p/package.json @@ -67,5 +67,83 @@ "value", "number", "small" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "log1p", + "alias": "log1p", + "pkg_desc": "evaluate the natural logarithm of 1+x", + "desc": "evaluates the natural logarithm of 1+x", + "short_desc": "natural logarithm of 1+x", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": -1, + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -1, + 100 + ] + }, + "example_values": [ + -0.99, + -0.9, + -0.5, + -0.25, + -0.1, + 0, + 0.01, + 0.25, + 0.5, + 1, + 2, + 3, + 4, + 9, + 16, + 25, + 36, + 49, + 64, + 81 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "natural logarithm of 1+x", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "ln", + "log1p", + "natural", + "logarithm", + "log" + ], + "extra_keywords": [ + "math.log", + "math.log1p" + ] + } + } } From c29dc8e1878967e2530aadf99ce1321253f919b7 Mon Sep 17 00:00:00 2001 From: Athan Date: Sat, 8 Nov 2025 14:04:20 -0800 Subject: [PATCH 2/2] chore: update example values Signed-off-by: Athan --- .../math/base/special/log1p/package.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/node_modules/@stdlib/math/base/special/log1p/package.json b/lib/node_modules/@stdlib/math/base/special/log1p/package.json index 4b67e5595f6b..f6a6d3a86b3d 100644 --- a/lib/node_modules/@stdlib/math/base/special/log1p/package.json +++ b/lib/node_modules/@stdlib/math/base/special/log1p/package.json @@ -101,23 +101,23 @@ }, "example_values": [ -0.99, + 3, + 0.01, + 0.25, + 4, + 9, -0.9, + 25, + 36, -0.5, -0.25, + 16, + 49, -0.1, 0, - 0.01, - 0.25, 0.5, 1, 2, - 3, - 4, - 9, - 16, - 25, - 36, - 49, 64, 81 ]