From 43d901e393a4e55027295ab5e4db4b1031779462 Mon Sep 17 00:00:00 2001 From: Manvith <148960168+manvith2003@users.noreply.github.com> Date: Thu, 30 Oct 2025 22:53:36 +0530 Subject: [PATCH] chore: add structured package data for math/base/special/sqrt1pm1 --- 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/sqrt1pm1/package.json | 80 ++++++++++++++++++- 1 file changed, 79 insertions(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/sqrt1pm1/package.json b/lib/node_modules/@stdlib/math/base/special/sqrt1pm1/package.json index 8e0104e8999a..bcf5728521bd 100644 --- a/lib/node_modules/@stdlib/math/base/special/sqrt1pm1/package.json +++ b/lib/node_modules/@stdlib/math/base/special/sqrt1pm1/package.json @@ -65,5 +65,83 @@ "power", "number", "small" - ] + ], + "__stdlib__": { + "scaffold": { + "$schema": "math/base@v1.0", + "base_alias": "sqrt1pm1", + "alias": "sqrt1pm1", + "pkg_desc": "compute sqrt(1 + x) - 1", + "desc": "computes the principal square root of `1+x` minus one", + "short_desc": "sqrt(1 + x) - 1", + "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": [ + 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 root", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "sqrt", + "sqrt1pm1", + "principal", + "square", + "root", + "power" + ], + "extra_keywords": [ + "math.sqrt" + ] + } + } }