From 7626b73edbe084720c67785e421f2a7312d7cb1f Mon Sep 17 00:00:00 2001 From: kgryte <2643044+kgryte@users.noreply.github.com> Date: Thu, 30 Oct 2025 00:57:12 +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 | 524 +++++++++++++++++- 1 file changed, 517 insertions(+), 7 deletions(-) diff --git a/lib/node_modules/@stdlib/math/special/data/unary.json b/lib/node_modules/@stdlib/math/special/data/unary.json index cc416373318f..eb93f194313f 100644 --- a/lib/node_modules/@stdlib/math/special/data/unary.json +++ b/lib/node_modules/@stdlib/math/special/data/unary.json @@ -153,7 +153,145 @@ ] }, "@stdlib/math/base/special/cabsf": {}, - "@stdlib/math/base/special/cabs": {}, + "@stdlib/math/base/special/cabs": { + "$schema": "math/base@v1.0", + "base_alias": "abs", + "alias": "cabs", + "pkg_desc": "compute the absolute value of a double-precision complex floating-point number", + "desc": "computes the absolute value of a double-precision complex floating-point number", + "short_desc": "absolute value", + "parameters": [ + { + "name": "z", + "desc": "input value", + "type": { + "javascript": "Complex128", + "jsdoc": "Complex128", + "c": "stdlib_complex128_t", + "dtype": "complex128" + }, + "domain": null, + "rand": { + "prng": "random/base/uniform", + "parameters": [ + [ + -10, + 10 + ], + [ + -10, + 10 + ] + ] + }, + "example_values": [ + { + "re": -3.14, + "im": -1.5 + }, + { + "re": 0, + "im": 0 + }, + { + "re": -1.5, + "im": 2.5 + }, + { + "re": 2.5, + "im": -1.5 + }, + { + "re": 0, + "im": -3.7 + }, + { + "re": 4.2, + "im": 0 + }, + { + "re": 21.2, + "im": 3 + }, + { + "re": 11, + "im": -5 + }, + { + "re": 33, + "im": -14.67 + }, + { + "re": -42, + "im": 9.3 + }, + { + "re": -3, + "im": 3 + }, + { + "re": 73, + "im": 31 + }, + { + "re": -2.45, + "im": 1.23 + }, + { + "re": 2.45, + "im": -1.23 + }, + { + "re": 1.77, + "im": -3.14 + }, + { + "re": -7.5, + "im": 8.2 + }, + { + "re": 5.5, + "im": -12.3 + }, + { + "re": -15.8, + "im": 0.4 + }, + { + "re": 0.99, + "im": -0.99 + }, + { + "re": 0.43, + "im": 0.91 + } + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "absolute value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "abs", + "absolute", + "magnitude", + "modulus", + "distance", + "complex", + "cmplx", + "number" + ], + "extra_keywords": [ + "math.abs" + ] + }, "@stdlib/math/base/special/abs2f": { "$schema": "math/base@v1.0", "base_alias": "abs2", @@ -386,7 +524,7 @@ ], "extra_keywords": [] }, - "@stdlib/math/base/special/absgammaln": {}, + "@stdlib/math/base/special/gammaln": {}, "@stdlib/math/base/special/acosf": { "$schema": "math/base@v1.0", "base_alias": "acos", @@ -7545,7 +7683,83 @@ "math.exp" ] }, - "@stdlib/math/base/special/expit": {}, + "@stdlib/math/base/special/expit": { + "$schema": "math/base@v1.0", + "base_alias": "expit", + "alias": "expit", + "pkg_desc": "evaluate the standard logistic function for a double-precision floating-point number", + "desc": "evaluates the standard logistic function for a double-precision floating-point number", + "short_desc": "standard logistic function", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -5, + 5 + ] + }, + "example_values": [ + -4.62, + 3.17, + -2.41, + 1.28, + -0.73, + 2.56, + -3.09, + 0.41, + 4.12, + -1.85, + 2.93, + -4.37, + 1.67, + -0.28, + 3.74, + -2.96, + 0.83, + -1.12, + 4.89, + -3.51 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "function value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "logit", + "inverse", + "expit", + "logistic", + "proportion", + "log-odds", + "sigmoid" + ], + "extra_keywords": [ + "math.exp" + ] + }, "@stdlib/math/base/special/expm1": {}, "@stdlib/math/base/special/expm1rel": {}, "@stdlib/math/base/special/factorial": { @@ -9016,14 +9230,232 @@ "math.tan" ] }, - "@stdlib/math/base/special/tandf": {}, - "@stdlib/math/base/special/tand": {}, + "@stdlib/math/base/special/tandf": { + "$schema": "math/base@v1.0", + "base_alias": "tand", + "alias": "tandf", + "pkg_desc": "compute the tangent of a single-precision floating-point number (in degrees)", + "desc": "computes the tangent of a single-precision floating-point number (in degrees)", + "short_desc": "tangent", + "parameters": [ + { + "name": "x", + "desc": "input value (in degrees)", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -180, + 180 + ] + }, + "example_values": [ + 0, + 15, + 30, + 45, + 60, + 75, + 90, + -15, + -30, + -45, + -60, + -75, + -90, + 10, + -10, + 20, + -20, + 35, + -35, + 80 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "tangent", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + } + }, + "keywords": [ + "tan", + "tand", + "tangent", + "trig", + "trigonometry", + "degrees" + ], + "extra_keywords": [ + "math.tan" + ] + }, + "@stdlib/math/base/special/tand": { + "$schema": "math/base@v1.0", + "base_alias": "tand", + "alias": "tand", + "pkg_desc": "compute the tangent of an angle measured in degrees", + "desc": "compute the tangent of an angle measured in degrees", + "short_desc": "tangent", + "parameters": [ + { + "name": "x", + "desc": "input value (in degrees)", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -180, + 180 + ] + }, + "example_values": [ + 0, + 30, + 45, + 60, + 90, + 120, + 135, + 150, + 180, + -30, + -45, + -60, + -90, + -120, + -135, + -150, + -180 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "tangent", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "degree", + "tan", + "tangent", + "trig", + "trigonometry" + ], + "extra_keywords": [] + }, "@stdlib/math/base/special/tanh": {}, "@stdlib/math/base/special/tribonaccif": {}, "@stdlib/math/base/special/tribonacci": {}, "@stdlib/math/base/special/trigammaf": {}, "@stdlib/math/base/special/trigamma": {}, - "@stdlib/math/base/special/truncf": {}, + "@stdlib/math/base/special/truncf": { + "$schema": "math/base@v1.0", + "base_alias": "trunc", + "alias": "truncf", + "pkg_desc": "round a single-precision floating-point number toward zero", + "desc": "rounds a single-precision floating-point number toward zero", + "short_desc": "", + "parameters": [ + { + "name": "x", + "desc": "input value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + }, + "domain": [ + { + "min": "-infinity", + "max": "infinity" + } + ], + "rand": { + "prng": "random/base/uniform", + "parameters": [ + -10, + 10 + ] + }, + "example_values": [ + 64.5, + 27.6, + 0.9, + 0.1, + -9.2, + 8.3, + -1.4, + 125.01, + -10.2, + 11.3, + -12.4, + 3.5, + -1.6, + 15.7, + -16, + 17.9, + -188, + 19.11, + -200, + 21.15 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "rounded value", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "float", + "dtype": "float32" + } + }, + "keywords": [ + "trunc", + "truncate", + "round", + "integer", + "number" + ], + "extra_keywords": [ + "math.trunc" + ] + }, "@stdlib/math/base/special/trunc": {}, "@stdlib/math/base/special/trunc10": {}, "@stdlib/math/base/special/trunc2": {}, @@ -9107,7 +9539,85 @@ ], "extra_keywords": [] }, - "@stdlib/math/base/special/vercos": {}, + "@stdlib/math/base/special/vercos": { + "$schema": "math/base@v1.0", + "base_alias": "vercos", + "alias": "vercos", + "pkg_desc": "compute the versed cosine", + "desc": "computes the versed cosine", + "short_desc": "versed cosine", + "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": [ + 64, + 27, + 0, + 0.1, + -9, + 8, + -1, + 125, + -10.2, + 11.3, + -12.4, + 3.5, + -1.6, + 15.7, + -16, + 17.9, + -188, + 19.11, + -200, + 21.15 + ] + } + ], + "output_policy": "real_floating_point_and_generic", + "returns": { + "desc": "versed cosine", + "type": { + "javascript": "number", + "jsdoc": "number", + "c": "double", + "dtype": "float64" + } + }, + "keywords": [ + "vercos", + "vercosin", + "vercosine", + "versed cosine", + "vcs", + "cosine", + "cos", + "trig", + "trigonometry", + "radians", + "angle" + ], + "extra_keywords": [] + }, "@stdlib/math/base/special/versinf": { "$schema": "math/base@v1.0", "base_alias": "vercos",