From 1bd66385f039918fbb8e56b535f02a267d030a34 Mon Sep 17 00:00:00 2001 From: kgryte <2643044+kgryte@users.noreply.github.com> Date: Thu, 30 Oct 2025 20:00:09 +0000 Subject: [PATCH] feat: update math scaffold databases Signed-off-by: stdlib-bot <82920195+stdlib-bot@users.noreply.github.com> --- .../@stdlib/math/special/data/unary.json | 307 +++++++++++++++++- 1 file changed, 303 insertions(+), 4 deletions(-) diff --git a/lib/node_modules/@stdlib/math/special/data/unary.json b/lib/node_modules/@stdlib/math/special/data/unary.json index 9ddecb0e8d1e..731030ab80af 100644 --- a/lib/node_modules/@stdlib/math/special/data/unary.json +++ b/lib/node_modules/@stdlib/math/special/data/unary.json @@ -9549,7 +9549,81 @@ "@stdlib/math/base/special/sinpi": {}, "@stdlib/math/base/special/spencef": {}, "@stdlib/math/base/special/spence": {}, - "@stdlib/math/base/special/sqrtf": {}, + "@stdlib/math/base/special/sqrtf": { + "$schema": "math/base@v1.0", + "base_alias": "sqrt", + "alias": "sqrtf", + "pkg_desc": "compute the principal square root of a single-precision floating-point number", + "desc": "computes the principal square root of a single-precision floating-point number", + "short_desc": "principal square root", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + }, + "domain": [ + { + "min": 0, + "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": "float", + "dtype": "float32" + } + }, + "keywords": [ + "sqrt", + "principal", + "square", + "root", + "power" + ], + "extra_keywords": [ + "math.sqrt" + ] + }, "@stdlib/math/base/special/sqrt": { "$schema": "math/base@v1.0", "base_alias": "sqrt", @@ -9624,9 +9698,234 @@ "math.sqrt" ] }, - "@stdlib/math/base/special/sqrt1pm1": {}, - "@stdlib/math/base/special/sqrtpif": {}, - "@stdlib/math/base/special/sqrtpi": {}, + "@stdlib/math/base/special/sqrt1pm1": { + "$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" + ] + }, + "@stdlib/math/base/special/sqrtpif": { + "$schema": "math/base@v1.0", + "base_alias": "sqrtpi", + "alias": "sqrtpif", + "pkg_desc": "compute the principal square root of the product of π and a positive single-precision floating-point number", + "desc": "computes the principal square root of the product of π and a positive single-precision floating-point number", + "short_desc": "principal square root of the product of π and a positive number", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + }, + "domain": [ + { + "min": 0, + "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": "float", + "dtype": "float32" + } + }, + "keywords": [ + "sqrtpi", + "principal", + "square", + "root", + "power", + "pi" + ], + "extra_keywords": [ + "math.sqrt" + ] + }, + "@stdlib/math/base/special/sqrtpi": { + "$schema": "math/base@v1.0", + "base_alias": "sqrtpi", + "alias": "sqrtpi", + "pkg_desc": "compute the principal square root of the product of π and a positive double-precision floating-point number", + "desc": "computes the principal square root of the product of π and a positive double-precision floating-point number", + "short_desc": "principal square root of the product of π and a positive number", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": 0, + "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": [ + "sqrtpi", + "principal", + "square", + "root", + "power", + "pi" + ], + "extra_keywords": [ + "math.sqrt" + ] + }, "@stdlib/math/base/special/tanf": { "$schema": "math/base@v1.0", "base_alias": "tan",